Browse Source

Only allow LM previews in Object mode

Generating lightmap previews in edit mode is nonsense. Also, there is
some issue in blender with changing the image assignment programatically
while in edit mode, so it's best to just disallow this entirely.
pull/77/head
Adam Johnson 7 years ago
parent
commit
0b4da161ff
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 2
      korman/operators/op_lightmap.py

2
korman/operators/op_lightmap.py

@ -23,6 +23,8 @@ class _LightingOperator:
@classmethod
def poll(cls, context):
if context.mode != "OBJECT":
return False
if context.object is not None:
return context.scene.render.engine == "PLASMA_GAME"

Loading…
Cancel
Save