Browse Source

Apply suggestions from code review

Co-authored-by: Adam Johnson <AdamJohnso@gmail.com>
pull/256/head
Darryl Pogue 4 years ago committed by GitHub
parent
commit
adbdf31507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      korman/properties/modifiers/water.py

6
korman/properties/modifiers/water.py

@ -480,10 +480,6 @@ class PlasmaBuoyObject(idprops.IDPropObjectMixin, bpy.types.PropertyGroup):
type=bpy.types.Object,
poll=idprops.poll_mesh_objects)
@classmethod
def _idprop_mapping(cls):
return {"buoy_object": "object_name"}
class PlasmaWaterBuoyModifier(PlasmaModifierProperties):
pl_depends = {"water_basic"}
@ -502,5 +498,5 @@ class PlasmaWaterBuoyModifier(PlasmaModifierProperties):
for i in self.buoys:
if i.buoy_object is None:
raise ExportError("'{}': Buoy Object for '{}' is invalid".format(self.key_name, i.display_name))
raise ExportError("'{}': Buoy Object for '{}' is invalid", self.key_name, i.display_name)
waveset.addBuoy(exporter.mgr.find_create_key(plSceneObject, bl=i.buoy_object))

Loading…
Cancel
Save