Skip to content

Commit

Permalink
Merge pull request #16 from MozillaReality/scene-grabbables
Browse files Browse the repository at this point in the history
Scene grababbles refactor
  • Loading branch information
keianhzo authored May 8, 2024
2 parents e81f851 + 53bf098 commit 7377432
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 344 deletions.
12 changes: 1 addition & 11 deletions components/__init__.py
Original file line number Diff line number Diff line change
@@ -1,29 +1,19 @@
from . import custom_tags, grabbable, rigid_body, physics_shape, networked_behavior, networked_transform, networked_animation, capturable, networked_material, networked_object_material, networked_object_properties
from . import custom_tags, networked_behavior, networked_animation, networked_material, networked_object_material, networked_object_properties


def register():
custom_tags.register()
grabbable.register()
rigid_body.register()
physics_shape.register()
networked_behavior.register()
networked_transform.register()
networked_animation.register()
networked_material.register()
networked_object_material.register()
networked_object_properties.register()
capturable.register()


def unregister():
capturable.unregister()
networked_behavior.unregister()
networked_transform.unregister()
networked_animation.unregister()
networked_material.unregister()
networked_object_material.unregister()
rigid_body.unregister()
physics_shape.unregister()
grabbable.unregister()
custom_tags.unregister()
networked_object_properties.unregister()
23 changes: 0 additions & 23 deletions components/capturable.py

This file was deleted.

2 changes: 1 addition & 1 deletion components/custom_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def execute(self, context):
class CustomTags(HubsComponent):
_definition = {
'name': 'custom-tags',
'display_name': 'BG Custom Tags',
'display_name': 'Custom Tags',
'category': Category.OBJECT,
'node_type': NodeType.NODE,
'panel_type': [PanelType.OBJECT, PanelType.BONE],
Expand Down
39 changes: 0 additions & 39 deletions components/grabbable.py

This file was deleted.

22 changes: 0 additions & 22 deletions components/networked_transform.py

This file was deleted.

97 changes: 0 additions & 97 deletions components/physics_shape.py

This file was deleted.

149 changes: 0 additions & 149 deletions components/rigid_body.py

This file was deleted.

4 changes: 2 additions & 2 deletions consts.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Nodes that are deprecated and are replaced with hardcoded nodes but we still load the nodes
# from the JSON as we want the to work for backwards compatibility but we don't want them to show in
# the categories
from .components import networked_animation, networked_behavior, networked_transform, rigid_body, physics_shape
from io_hubs_addon.components.definitions import text, video, audio, media_frame, visible
from .components import networked_animation, networked_behavior
from io_hubs_addon.components.definitions import text, video, audio, media_frame, visible, rigid_body, physics_shape, networked_transform
DEPRECATED_NODES = [
"BGNode_hubs_material_set",
"BGNode_hubs_material_getColor",
Expand Down

0 comments on commit 7377432

Please sign in to comment.