diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2005-11-04 19:30:38 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2005-11-04 19:30:38 +0300 |
commit | a5aacefbfcd80d2e232809b6d5aed26fcf821597 (patch) | |
tree | 7047475e579c9ce64fef3c4054cd01a8c9d8f5e0 /release | |
parent | 4b598feab206f999a299992e0bc08c8329a6168e (diff) |
Scripts: Jean-Michel updated his rvk1 to rvk2 script (thanks); small fix in BPyRegistry module to remove empty config keys instead of causing an error
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/bpymodules/BPyRegistry.py | 2 | ||||
-rw-r--r-- | release/scripts/rvk1_torvk2.py | 30 |
2 files changed, 16 insertions, 16 deletions
diff --git a/release/scripts/bpymodules/BPyRegistry.py b/release/scripts/bpymodules/BPyRegistry.py index de73cb19a8c..37c74dddbc1 100644 --- a/release/scripts/bpymodules/BPyRegistry.py +++ b/release/scripts/bpymodules/BPyRegistry.py @@ -242,7 +242,7 @@ def SaveConfigData (key = None): for mainkey in keys: cfgdict = Registry.GetKey(mainkey).copy() for k in cfgdict.keys(): - if k[0] == '_': cfgdict.pop(k) + if not k or k[0] == '_': cfgdict.pop(k) if not cfgdict: continue diff --git a/release/scripts/rvk1_torvk2.py b/release/scripts/rvk1_torvk2.py index 6a7f31fb252..cc66050ea77 100644 --- a/release/scripts/rvk1_torvk2.py +++ b/release/scripts/rvk1_torvk2.py @@ -11,7 +11,7 @@ __author__ = "Jean-Michel Soler (jms)" __url__ = ("blender", "elysiun", "Script's homepage, http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_rvk1versrvk2.htm", "Communicate problems and errors, http://www.zoo-logique.org/3D.Blender/newsportal/thread.php?group=3D.Blender") -__version__ = "2004/05" +__version__ = "2005/11" __bpydoc__ = """\ "RVK1 to RVK2" copies deform data (except surface subdivision) of the active @@ -70,20 +70,20 @@ def rvk2rvk(): FRAME=Blender.Get('curframe') DATA2=RVK2.getData() - - if DATA2.getMode() & NMesh.Modes['SUBSURF'] : - SUBSURF2=DATA2.getSubDivLevels() - if SUBSURF2[0]!=0: - name = "The active object has a subsurf level different from 0 ... %t| Let script do the the modification for you ? %x1| you prefer do it yourself ? %x2 " - result = Draw.PupMenu(name) - if result==1: - DATA2.mode=DATA2.mode-NMesh.Modes['SUBSURF'] - SUBMODIF=1 - DATA2.update() - RVK2.makeDisplayList() - Blender.Redraw() - else: - return + if Blender.Get('version')<239: + if DATA2.getMode() & NMesh.Modes['SUBSURF'] : + SUBSURF2=DATA2.getSubDivLevels() + if SUBSURF2[0]!=0: + name = "The active object has a subsurf level different from 0 ... %t| Let script do the the modification for you ? %x1| you prefer do it yourself ? %x2 " + result = Draw.PupMenu(name) + if result==1: + DATA2.mode=DATA2.mode-NMesh.Modes['SUBSURF'] + SUBMODIF=1 + DATA2.update() + RVK2.makeDisplayList() + Blender.Redraw() + else: + return RVK2NAME=Object.GetSelected()[0].getName() mesh=RVK1.getData() |