Skip to content

Commit

Permalink
Make Blender 4+ nodes default to moving when added.
Browse files Browse the repository at this point in the history
This mimics the behavior of pre-4.0 Blender versions.
  • Loading branch information
Exairnous committed Jul 26, 2024
1 parent 0ed665d commit 99b82dc
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 99b82dc

Please sign in to comment.