Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-04-16 18:27:22 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-04-16 18:27:22 +0400
commit6e40088604b744eba4eb1775ac0776998d8a03cc (patch)
treed1f930542dabdbaf0df040216f3225bb1a680282 /release/scripts/startup/bl_operators/uvcalc_lightmap.py
parentcaafc8184bb63f38eeac13f9acf7f7410cddc440 (diff)
Partial revert of rev45691: allow lightmap undo and add comment why redo was disabled
Diffstat (limited to 'release/scripts/startup/bl_operators/uvcalc_lightmap.py')
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_lightmap.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/uvcalc_lightmap.py b/release/scripts/startup/bl_operators/uvcalc_lightmap.py
index 3074db17d0f..417ae89218c 100644
--- a/release/scripts/startup/bl_operators/uvcalc_lightmap.py
+++ b/release/scripts/startup/bl_operators/uvcalc_lightmap.py
@@ -550,6 +550,16 @@ class LightMapPack(Operator):
bl_idname = "uv.lightmap_pack"
bl_label = "Lightmap Pack"
+ # Disable REGISTER flag for now because this operator might create new
+ # images. This leads to non-proper operator redo because current undo
+ # stack is local for edit mode and can not remove images created by this
+ # oprtator.
+ # Proper solution would be to make undo stack aware of such things,
+ # but for now just disable redo. Keep undo here so unwanted changes to uv
+ # coords might be undone.
+ # This fixes infinite image creation reported there [#30968] (sergey)
+ bl_options = {'UNDO'}
+
PREF_CONTEXT = bpy.props.EnumProperty(
name="Selection",
items=(('SEL_FACES', "Selected Faces", "Space all UVs evently"),