Skip to content

Commit

Permalink
Removed terrain doodad bake debug operator
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbasnett committed Aug 5, 2024
1 parent 3dbbf76 commit 8dde552
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions bdk_addon/terrain/doodad/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,30 +554,6 @@ def execute(self, context: Context):
return {'FINISHED'}


class BDK_OT_terrain_doodad_bake_debug(Operator):
bl_label = 'Bake Debug'
bl_idname = 'bdk.terrain_doodad_bake_debug'
bl_options = {'REGISTER', 'UNDO'}

@classmethod
def poll(cls, context: Context):
return is_active_object_terrain_doodad(context) and should_show_bdk_developer_extras(context)

def execute(self, context: Context):
terrain_doodad = get_terrain_doodad(context.active_object)
if terrain_doodad is None:
return {'CANCELLED'}

node_tree, attribute_map = create_terrain_doodad_bake_node_tree(terrain_doodad)

# Add a muted modifier to the active object.
modifier = terrain_doodad.terrain_info_object.modifiers.new(name='Bake', type='NODES')
modifier.node_group = node_tree
modifier.show_viewport = True

return {'FINISHED'}


class BDK_OT_terrain_doodad_demote(Operator):
bl_idname = 'bdk.terrain_doodad_demote'
bl_label = 'Demote Terrain Doodad'
Expand Down Expand Up @@ -682,7 +658,6 @@ def execute(self, context: Context):
BDK_OT_terrain_doodad_freeze,
BDK_OT_terrain_doodad_unfreeze,
BDK_OT_terrain_doodad_bake,
BDK_OT_terrain_doodad_bake_debug,
BDK_OT_terrain_doodad_delete,
BDK_OT_terrain_doodad_duplicate,
BDK_OT_terrain_doodad_demote,
Expand Down

0 comments on commit 8dde552

Please sign in to comment.