[Durian-svn] [1481] Cam showed me profiling, then helped me figure out why this script was slow..
dolf
institute at blender.org
Wed Mar 24 19:33:06 CET 2010
Revision: 1481
https://blenderinstitute.dyndns.org/durian-svn/?do=log&project=durian&path=/&rev=1481
Author: dolf
Date: 2010-03-24 19:33:06 +0100 (Wed, 24 Mar 2010)
Log Message:
-----------
Cam showed me profiling, then helped me figure out why this script was slow.. nice!
Modified Paths:
--------------
pro/scripts/ui/replace_by_active.py
Modified: pro/scripts/ui/replace_by_active.py
===================================================================
--- pro/scripts/ui/replace_by_active.py 2010-03-24 18:15:50 UTC (rev 1480)
+++ pro/scripts/ui/replace_by_active.py 2010-03-24 18:33:06 UTC (rev 1481)
@@ -49,7 +49,9 @@
scene.objects.active = actOb
- bpy.ops.object.duplicate()
+ obn = actOb.copy()
+ scene.objects.link(obn)
+ obn.data = obn.data.copy()
actOb = scene.objects.active
More information about the Durian-svn
mailing list