Skip to content

Commit

Permalink
Merge pull request #306 from Exairnous/blender4-fix-nodes-not-transfo…
Browse files Browse the repository at this point in the history
…rming-on-add

Make Blender 4+ nodes default to moving when added.
  • Loading branch information
Exairnous authored Jul 26, 2024
2 parents 0568759 + 99b82dc commit 08ffc89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/io_hubs_addon/nodes/lightmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ class NODE_MT_mozilla_hubs_nodes(bpy.types.Menu):

def draw(self, context):
layout = self.layout
layout.operator("node.add_node", text="MOZ_lightmap settings").type = "moz_lightmap.node"
op = layout.operator("node.add_node", text="MOZ_lightmap settings")
op.type = "moz_lightmap.node"
op.use_transform = True


class MozLightmapNode(Node):
Expand Down

0 comments on commit 08ffc89

Please sign in to comment.