Skip to content

Commit

Permalink
fixup 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoikas committed Jun 23, 2024
1 parent 8da8b9f commit b0d100d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
7 changes: 7 additions & 0 deletions korman/plasma_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@
{ "id": 19, "type": "ptAttribBoolean", "name": "blockRGB" },
),

# Provided by CWE and OfflineKI
"xEntryCam.py": (
{ "id": 1, "type": "ptAttribActivator", "name": "actRegionSensor" },
{ "id": 2, "type": "ptAttribSceneobject", "name": "camera" },
{ "id": 3, "type": "ptAttribBoolean", "name": "undoFirstPerson" },
),

# Provided by CWE
"xJournalBookGUIPopup.py": (
{ "id": 1, "type": "ptAttribActivator", "name": "actClickableBook" },
Expand Down
15 changes: 1 addition & 14 deletions korman/properties/modifiers/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,6 @@
from ... import idprops
from .physics import bounds_type_index, bounds_type_str, bounds_types

entry_cam_pfm = {
"filename": "xEntryCam.py",
"attribs": (
{ 'id': 1, 'type': "ptAttribActivator", 'name': "actRegionSensor" },
{ 'id': 2, 'type': "ptAttribSceneobject", 'name': "camera" },
{ 'id': 3, 'type': "ptAttribBoolean", 'name': "undoFirstPerson" },
)
}

class PlasmaVersionedNodeTree(idprops.IDPropMixin, bpy.types.PropertyGroup):
version = EnumProperty(name="Version",
description="Plasma versions this node tree exports under",
Expand Down Expand Up @@ -151,11 +142,7 @@ def pre_export(self, exporter: Exporter, bo: bpy.types.Object) -> None:
yield self.convert_logic(bo)

def logicwiz(self, bo, tree):
pfm_node = self._create_python_file_node(
tree,
entry_cam_pfm["filename"],
entry_cam_pfm["attribs"]
)
pfm_node = self._create_standard_python_file_node(tree, "xEntryCam.py")

volume_sensor: PlasmaVolumeSensorNode = tree.nodes.new("PlasmaVolumeSensorNode")
volume_sensor.find_input_socket("enter").allow = True
Expand Down

0 comments on commit b0d100d

Please sign in to comment.