|
|
@ -16,7 +16,9 @@ |
|
|
|
import bpy |
|
|
|
import bpy |
|
|
|
from bpy.props import * |
|
|
|
from bpy.props import * |
|
|
|
|
|
|
|
|
|
|
|
class PlasmaLamp(bpy.types.PropertyGroup): |
|
|
|
from .. import idprops |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PlasmaLamp(idprops.IDPropObjectMixin, bpy.types.PropertyGroup): |
|
|
|
affect_characters = BoolProperty(name="Affect Avatars", |
|
|
|
affect_characters = BoolProperty(name="Affect Avatars", |
|
|
|
description="This lamp affects avatars", |
|
|
|
description="This lamp affects avatars", |
|
|
|
options=set(), |
|
|
|
options=set(), |
|
|
@ -43,9 +45,10 @@ class PlasmaLamp(bpy.types.PropertyGroup): |
|
|
|
default=False, |
|
|
|
default=False, |
|
|
|
options=set()) |
|
|
|
options=set()) |
|
|
|
|
|
|
|
|
|
|
|
soft_region = StringProperty(name="Soft Volume", |
|
|
|
lamp_region = PointerProperty(name="Soft Volume", |
|
|
|
description="Soft region this light is active inside", |
|
|
|
description="Soft region this light is active inside", |
|
|
|
options=set()) |
|
|
|
type=bpy.types.Object, |
|
|
|
|
|
|
|
poll=idprops.poll_softvolume_objects) |
|
|
|
|
|
|
|
|
|
|
|
# For LimitedDirLights |
|
|
|
# For LimitedDirLights |
|
|
|
size_height = FloatProperty(name="Height", |
|
|
|
size_height = FloatProperty(name="Height", |
|
|
@ -55,3 +58,7 @@ class PlasmaLamp(bpy.types.PropertyGroup): |
|
|
|
|
|
|
|
|
|
|
|
def has_light_group(self, bo): |
|
|
|
def has_light_group(self, bo): |
|
|
|
return bool(bo.users_group) |
|
|
|
return bool(bo.users_group) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@classmethod |
|
|
|
|
|
|
|
def _idprop_mapping(cls): |
|
|
|
|
|
|
|
return {"lamp_region": "soft_region"} |
|
|
|