Skip to content

Commit 28b0016

Browse files
committed
fixed perf issue with cam linker
1 parent eeb47cf commit 28b0016

File tree

10 files changed

+93
-40
lines changed

10 files changed

+93
-40
lines changed

docs/changelog/index.html

Lines changed: 54 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,14 @@
166166

167167
<ul>
168168

169+
<li><a class="toctree-l3" href="#056">0.5.6</a></li>
170+
171+
<li><a class="toctree-l3" href="#055">0.5.5</a></li>
172+
173+
<li><a class="toctree-l3" href="#054">0.5.4</a></li>
174+
175+
<li><a class="toctree-l3" href="#053">0.5.3</a></li>
176+
169177
<li><a class="toctree-l3" href="#052">0.5.2</a></li>
170178

171179
<li><a class="toctree-l3" href="#050">0.5.0</a></li>
@@ -262,21 +270,31 @@ <h1 id="changelog">Changelog</h1>
262270
<div class="toc">
263271
<ul>
264272
<li><a href="#changelog">Changelog</a><ul>
265-
<li><a href="#052">0.5.2</a><ul>
273+
<li><a href="#056">0.5.6</a><ul>
274+
<li><a href="#fixes">Fixes</a></li>
275+
</ul>
276+
</li>
277+
<li><a href="#055">0.5.5</a><ul>
266278
<li><a href="#new">New</a></li>
267279
</ul>
268280
</li>
269-
<li><a href="#050">0.5.0</a><ul>
281+
<li><a href="#054">0.5.4</a></li>
282+
<li><a href="#053">0.5.3</a></li>
283+
<li><a href="#052">0.5.2</a><ul>
270284
<li><a href="#new_1">New</a></li>
285+
</ul>
286+
</li>
287+
<li><a href="#050">0.5.0</a><ul>
288+
<li><a href="#new_2">New</a></li>
271289
<li><a href="#bugfixes">Bugfixes</a></li>
272290
</ul>
273291
</li>
274292
<li><a href="#040">0.4.0</a><ul>
275-
<li><a href="#new_2">New</a></li>
293+
<li><a href="#new_3">New</a></li>
276294
</ul>
277295
</li>
278296
<li><a href="#020">0.2.0</a><ul>
279-
<li><a href="#new_3">New</a></li>
297+
<li><a href="#new_4">New</a></li>
280298
</ul>
281299
</li>
282300
<li><a href="#0020">0.0.20</a><ul>
@@ -289,17 +307,17 @@ <h1 id="changelog">Changelog</h1>
289307
</li>
290308
<li><a href="#0017">0.0.17</a><ul>
291309
<li><a href="#bugfixes_3">Bugfixes</a></li>
292-
<li><a href="#new_4">New</a></li>
310+
<li><a href="#new_5">New</a></li>
293311
<li><a href="#bugfixes_4">Bugfixes</a></li>
294312
</ul>
295313
</li>
296314
<li><a href="#006">0.0.6</a><ul>
297-
<li><a href="#new_5">New</a></li>
315+
<li><a href="#new_6">New</a></li>
298316
<li><a href="#bugfixes_5">Bugfixes</a></li>
299317
</ul>
300318
</li>
301319
<li><a href="#005">0.0.5</a><ul>
302-
<li><a href="#new_6">New</a></li>
320+
<li><a href="#new_7">New</a></li>
303321
</ul>
304322
</li>
305323
<li><a href="#004">0.0.4</a><ul>
@@ -311,9 +329,9 @@ <h1 id="changelog">Changelog</h1>
311329
</ul>
312330
</li>
313331
<li><a href="#002">0.0.2</a><ul>
314-
<li><a href="#new_7">New</a></li>
332+
<li><a href="#new_8">New</a></li>
315333
<li><a href="#improvements_1">Improvements</a></li>
316-
<li><a href="#fixes">Fixes</a></li>
334+
<li><a href="#fixes_1">Fixes</a></li>
317335
</ul>
318336
</li>
319337
<li><a href="#001">0.0.1</a></li>
@@ -322,13 +340,31 @@ <h1 id="changelog">Changelog</h1>
322340
</ul>
323341
</div>
324342
<p>This is the list of what has changed since the first version of <em>Duik for Blender</em>.</p>
325-
<h2 id="052">0.5.2</h2>
343+
<h2 id="056">0.5.6</h2>
344+
<h4 id="fixes">Fixes</h4>
345+
<ul>
346+
<li>Fixed performance issue (due to the cam linker) on scenes with a lot of objects</li>
347+
</ul>
348+
<h2 id="055">0.5.5</h2>
326349
<h4 id="new">New</h4>
327350
<ul>
351+
<li>Added a &ldquo;Create scene&rdquo; operator, in the <code>3D view &gt; Add</code> menu</li>
352+
</ul>
353+
<h2 id="054">0.5.4</h2>
354+
<ul>
355+
<li>Fixed an error showing in the console when linking collections</li>
356+
</ul>
357+
<h2 id="053">0.5.3</h2>
358+
<ul>
359+
<li>Fixed an error happening when (re)moving an image in the TexAnim module.</li>
360+
</ul>
361+
<h2 id="052">0.5.2</h2>
362+
<h4 id="new_1">New</h4>
363+
<ul>
328364
<li>Added an operator to reset <a href="../ui-controls/">Custom UI Controls</a> to their default values.</li>
329365
</ul>
330366
<h2 id="050">0.5.0</h2>
331-
<h4 id="new_1">New</h4>
367+
<h4 id="new_2">New</h4>
332368
<ul>
333369
<li><a href="../dopesheet-filters/">Dope Sheet and Graph Editor filters</a></li>
334370
</ul>
@@ -337,12 +373,12 @@ <h4 id="bugfixes">Bugfixes</h4>
337373
<li>Improved <a href="../texanim/">TexAnim</a> and fixed a few bugs.</li>
338374
</ul>
339375
<h2 id="040">0.4.0</h2>
340-
<h4 id="new_2">New</h4>
376+
<h4 id="new_3">New</h4>
341377
<ul>
342378
<li>Added the <a href="../oca/">OCA Importer</a></li>
343379
</ul>
344380
<h2 id="020">0.2.0</h2>
345-
<h4 id="new_3">New</h4>
381+
<h4 id="new_4">New</h4>
346382
<ul>
347383
<li><a href="../objects/">Camera Linker</a></li>
348384
</ul>
@@ -363,7 +399,7 @@ <h4 id="bugfixes_3">Bugfixes</h4>
363399
<li>The <a href="../texanim/">TexAnim</a> keyframes are now correctly updated when modifying the list of images if the list already has keyframes.</li>
364400
<li>The <a href="../texanim/">TexAnim</a> is now correctly updated when navigating the timeline with the keyboard shortcuts ( [-&gt;] and [&lt;-] )</li>
365401
</ul>
366-
<h4 id="new_4">New</h4>
402+
<h4 id="new_5">New</h4>
367403
<ul>
368404
<li><a href="../animation-tools/">Pie menu with animation tools</a>.</li>
369405
<li>Added a <a href="../armatures/">Pie menu for the armature display options</a>.</li>
@@ -375,7 +411,7 @@ <h4 id="bugfixes_4">Bugfixes</h4>
375411
<li>Lots of bugfixes</li>
376412
</ul>
377413
<h2 id="006">0.0.6</h2>
378-
<h4 id="new_5">New</h4>
414+
<h4 id="new_6">New</h4>
379415
<ul>
380416
<li>Added the <a href="../texanim/">Texture Animation</a> tool.</li>
381417
</ul>
@@ -384,7 +420,7 @@ <h4 id="bugfixes_5">Bugfixes</h4>
384420
<li>Lots of bugfixes</li>
385421
</ul>
386422
<h2 id="005">0.0.5</h2>
387-
<h4 id="new_6">New</h4>
423+
<h4 id="new_7">New</h4>
388424
<ul>
389425
<li>Added a <a href="../ui-layers/">ui for bone layers</a> in the 3D View</li>
390426
</ul>
@@ -401,15 +437,15 @@ <h4 id="improvements">Improvements</h4>
401437
<li><a href="../fk/"><em>FK Controller</em></a>: the property for the &ldquo;follow&rdquo; option has been moved to the bone instead of the controller. Use a Duik <a href="../ui-controls/"><em>UI Control</em></a> to expose it on the controller if needed. Also, the way to rig the FK controller has been simplified a lot.</li>
402438
</ul>
403439
<h2 id="002">0.0.2</h2>
404-
<h4 id="new_7">New</h4>
440+
<h4 id="new_8">New</h4>
405441
<ul>
406442
<li><a href="../ui-controls/"><em>UI Controls</em></a></li>
407443
</ul>
408444
<h4 id="improvements_1">Improvements</h4>
409445
<ul>
410446
<li><a href="../bbone/"><em>BBone Controllers</em></a> now control the bbone rotations more accurately, and the scale controls the curvature.</li>
411447
</ul>
412-
<h4 id="fixes">Fixes</h4>
448+
<h4 id="fixes_1">Fixes</h4>
413449
<ul>
414450
<li>The <em>Assign</em> button for the <a href="../selection-sets/"><em>Selection sets</em></a> now work correctly even if the set has been created empty at first.</li>
415451
<li>The custom properties used by Duik no longer have wrong limits.</li>

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,5 +353,5 @@ <h3 id="this-documentation">This Documentation</h3>
353353

354354
<!--
355355
MkDocs version : 1.0.4
356-
Build Date UTC : 2020-12-07 14:51:10
356+
Build Date UTC : 2021-03-17 08:54:34
357357
-->

docs/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/sitemap.xml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,87 +2,87 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://rainboxlab.org/</loc>
5-
<lastmod>2020-12-07</lastmod>
5+
<lastmod>2021-03-17</lastmod>
66
<changefreq>daily</changefreq>
77
</url>
88
<url>
99
<loc>https://rainboxlab.org/install/</loc>
10-
<lastmod>2020-12-07</lastmod>
10+
<lastmod>2021-03-17</lastmod>
1111
<changefreq>daily</changefreq>
1212
</url>
1313
<url>
1414
<loc>https://rainboxlab.org/settings/</loc>
15-
<lastmod>2020-12-07</lastmod>
15+
<lastmod>2021-03-17</lastmod>
1616
<changefreq>daily</changefreq>
1717
</url>
1818
<url>
1919
<loc>https://rainboxlab.org/armatures/</loc>
20-
<lastmod>2020-12-07</lastmod>
20+
<lastmod>2021-03-17</lastmod>
2121
<changefreq>daily</changefreq>
2222
</url>
2323
<url>
2424
<loc>https://rainboxlab.org/ikfk/</loc>
25-
<lastmod>2020-12-07</lastmod>
25+
<lastmod>2021-03-17</lastmod>
2626
<changefreq>daily</changefreq>
2727
</url>
2828
<url>
2929
<loc>https://rainboxlab.org/fk/</loc>
30-
<lastmod>2020-12-07</lastmod>
30+
<lastmod>2021-03-17</lastmod>
3131
<changefreq>daily</changefreq>
3232
</url>
3333
<url>
3434
<loc>https://rainboxlab.org/bbone/</loc>
35-
<lastmod>2020-12-07</lastmod>
35+
<lastmod>2021-03-17</lastmod>
3636
<changefreq>daily</changefreq>
3737
</url>
3838
<url>
3939
<loc>https://rainboxlab.org/objects/</loc>
40-
<lastmod>2020-12-07</lastmod>
40+
<lastmod>2021-03-17</lastmod>
4141
<changefreq>daily</changefreq>
4242
</url>
4343
<url>
4444
<loc>https://rainboxlab.org/ui/</loc>
45-
<lastmod>2020-12-07</lastmod>
45+
<lastmod>2021-03-17</lastmod>
4646
<changefreq>daily</changefreq>
4747
</url>
4848
<url>
4949
<loc>https://rainboxlab.org/selection-sets/</loc>
50-
<lastmod>2020-12-07</lastmod>
50+
<lastmod>2021-03-17</lastmod>
5151
<changefreq>daily</changefreq>
5252
</url>
5353
<url>
5454
<loc>https://rainboxlab.org/ui-controls/</loc>
55-
<lastmod>2020-12-07</lastmod>
55+
<lastmod>2021-03-17</lastmod>
5656
<changefreq>daily</changefreq>
5757
</url>
5858
<url>
5959
<loc>https://rainboxlab.org/ui-layers/</loc>
60-
<lastmod>2020-12-07</lastmod>
60+
<lastmod>2021-03-17</lastmod>
6161
<changefreq>daily</changefreq>
6262
</url>
6363
<url>
6464
<loc>https://rainboxlab.org/animation-tools/</loc>
65-
<lastmod>2020-12-07</lastmod>
65+
<lastmod>2021-03-17</lastmod>
6666
<changefreq>daily</changefreq>
6767
</url>
6868
<url>
6969
<loc>https://rainboxlab.org/dopesheet-filters/</loc>
70-
<lastmod>2020-12-07</lastmod>
70+
<lastmod>2021-03-17</lastmod>
7171
<changefreq>daily</changefreq>
7272
</url>
7373
<url>
7474
<loc>https://rainboxlab.org/texanim/</loc>
75-
<lastmod>2020-12-07</lastmod>
75+
<lastmod>2021-03-17</lastmod>
7676
<changefreq>daily</changefreq>
7777
</url>
7878
<url>
7979
<loc>https://rainboxlab.org/oca/</loc>
80-
<lastmod>2020-12-07</lastmod>
80+
<lastmod>2021-03-17</lastmod>
8181
<changefreq>daily</changefreq>
8282
</url>
8383
<url>
8484
<loc>https://rainboxlab.org/changelog/</loc>
85-
<lastmod>2020-12-07</lastmod>
85+
<lastmod>2021-03-17</lastmod>
8686
<changefreq>daily</changefreq>
8787
</url>
8888
<url>

docs/sitemap.xml.gz

1 Byte
Binary file not shown.

duik/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"blender": (2, 80, 0),
2424
"author": "Nicolas 'Duduf' Dufresne",
2525
"location": "Armature properties Pose Menu, View3d sidebar (N), Shader Editor sidebar (N), File > Import.",
26-
"version": (0,5,5),
26+
"version": (0,5,6),
2727
"description": "Experimental tools from Rainbox Lab. which may end up in Duik for Blender.",
2828
"wiki_url": "https://duik-blender-docs.rainboxlab.org/",
2929
}

duik/cam_linker.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
class DUIK_CamLinker( bpy.types.PropertyGroup ):
2828
"""A control to link the scene camera to specific properties"""
29+
current_cam = ""
2930

3031
id_type: bpy.props.EnumProperty (
3132
items = [
@@ -178,6 +179,13 @@ def draw(self, context):
178179
@persistent
179180
def update_camera_links( scene ):
180181
"""Updates all properties pointing to the current camera"""
182+
# Check if the cam has changed, to avoid unnecessary overweight
183+
if scene.camera is None:
184+
DUIK_CamLinker.current_cam = ""
185+
return
186+
if scene.camera.name == DUIK_CamLinker.current_cam:
187+
return
188+
DUIK_CamLinker.current_cam = scene.camera.name
181189
# get all camera linkers in the scene
182190
for obj in scene.collection.all_objects:
183191
for cam_linker in obj.cam_linkers:
@@ -187,7 +195,6 @@ def update_camera_links( scene ):
187195
#bpy.context.object.pose.bones["pupil"].constraints["Track To"].target = scene.camera
188196
setattr(struct[0], struct[1], scene.camera)
189197

190-
191198
classes = (
192199
DUIK_CamLinker,
193200
DUIK_OT_new_cam_linker,

src-docs/docs/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
This is the list of what has changed since the first version of *Duik for Blender*.
66

7+
## 0.5.6
8+
9+
#### Fixes
10+
11+
- Fixed performance issue (due to the cam linker) on scenes with a lot of objects
12+
713
## 0.5.5
814

915
#### New

tools/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
duik_path=../duik/
4+
docs_path=../src-docs/
45
dublf_path=../../DuBLF/dublf/
56
dupyf_path=../../../DuPYF/DuPYF/dupyf/
67

@@ -9,7 +10,6 @@ duik_path=$(cd "$duik_path"; pwd)
910
dublf_path=$(cd "$dublf_path"; pwd)
1011
dupyf_path=$(cd "$dupyf_path"; pwd)
1112

12-
1313
rm -r -f "duik"
1414
mkdir "duik"
1515

@@ -32,4 +32,8 @@ done
3232

3333
zip -r -m rx-experimental-tools.zip duik
3434

35+
# build doc
36+
cd $docs_path
37+
./build_doc.sh
38+
3539
echo "Done!"

tools/rx-experimental-tools.zip

52 KB
Binary file not shown.

0 commit comments

Comments
 (0)