Skip to content

Commit

Permalink
Remove search option
Browse files Browse the repository at this point in the history
  • Loading branch information
s4Ys369 committed Sep 13, 2024
1 parent 3cfbdd5 commit 904608d
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions fast64_internal/sm64/sm64_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,25 +1049,6 @@ def invoke(self, context, event):
return {"RUNNING_MODAL"}


class SearchWhirlpoolEnumOperator(bpy.types.Operator):
bl_idname = "object.search_whirlpool_enum_operator"
bl_label = "Search Whirlpool Conditions"
bl_property = "sm64_whirlpool_enum"
bl_options = {"REGISTER", "UNDO"}

sm64_whirlpool_enum: bpy.props.EnumProperty(items=enumWhirlpoolConditions)

def execute(self, context):
context.object.sm64_whirlpool_enum = self.sm64_whirlpool_enum
bpy.context.region.tag_redraw()
self.report({"INFO"}, "Selected: " + self.sm64_whirlpool_enum)
return {"FINISHED"}

def invoke(self, context, event):
context.window_manager.invoke_search_popup(self)
return {"RUNNING_MODAL"}


class SearchSpecialEnumOperator(bpy.types.Operator):
bl_idname = "object.search_special_enum_operator"
bl_label = "Search Specials"
Expand Down Expand Up @@ -1244,7 +1225,6 @@ def draw(self, context):
prop_split(box, obj, "sm64_whirlpool_enum", "Condition")
if obj.sm64_whirlpool_enum == "Custom":
prop_split(box, obj, "sm64_obj_preset", "Condition Name")
box.operator(SearchWhirlpoolEnumOperator.bl_idname, icon="VIEWZOOM")
box.box().label(text="Whirlpool conditions defined in include/level_commands.h.")
prop_split(box, obj, "whirlpool_index", "Index")
prop_split(box, obj, "whirlpool_strength", "Strength")
Expand Down Expand Up @@ -2830,7 +2810,6 @@ def upgrade_changed_props():
SearchBehaviourEnumOperator,
SearchSpecialEnumOperator,
SearchMacroEnumOperator,
SearchWhirlpoolEnumOperator,
StarGetCutscenesProperty,
PuppycamProperty,
PuppycamSetupCamera,
Expand Down

0 comments on commit 904608d

Please sign in to comment.