Skip to content

Commit af663c7

Browse files
committed
Fix but with LiveGroupInfo node
1 parent 1ea6bbf commit af663c7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

nk_parser/nuke_parser/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
__version__ = "0.3.0"
14+
__version__ = "0.3.1"

nk_parser/nuke_parser/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737

3838
_GROUP_NODE_CLASSES = ("Group", "Gizmo")
39-
_ROOT_NODE_CLASSES = ("Root", "LiveGroupInfo")
39+
ROOT_NODE_CLASSES = ("Root", "LiveGroupInfo")
4040

4141
_USER_KNOB_RE = re.compile(
4242
r"\{\s*(?P<type>\d+)\s+(?P<name>[\w_]+)"
@@ -504,7 +504,7 @@ def _parseNk(file_path: str, gizmos: Optional[dict] = None) -> Node:
504504
_parseLiveGroup(nk_node, gizmos)
505505

506506
main_stack.push(nk_node)
507-
if nk_node.Class() in _ROOT_NODE_CLASSES:
507+
if nk_node.Class() in ROOT_NODE_CLASSES:
508508
parents_stack.push(nk_node)
509509
continue
510510

nkview/nkview/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = "0.3.0"
15+
__version__ = "0.3.1"

nkview/nkview/gui_nodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from nkview import constants
2323
from nkview.qt import QtCore, QtGui, QtWidgets, PYSIDE6
24-
from nuke_parser.parser import Node
24+
from nuke_parser.parser import Node, ROOT_NODE_CLASSES
2525
from nuke_parser.stack import Stack
2626

2727
SCALE = 80
@@ -430,7 +430,7 @@ def __init__(self, nk_node: Node):
430430
self._shape_cls = shapeFromClass(nk_node)
431431

432432
self.nk_node = nk_node
433-
if nk_node.Class() != "Root":
433+
if nk_node.Class() not in ROOT_NODE_CLASSES:
434434
self.setZValue(1)
435435
self.setPos(QtCore.QPoint(self.nk_node.xpos(), self.nk_node.ypos()))
436436

0 commit comments

Comments
 (0)