10 years agoupdate for changes to blf module
Campbell Barton [Tue, 27 Apr 2010 19:46:15 +0000 (19:46 +0000)]
update for changes to blf module

10 years agoremove redundant argument from mathutils callbacks
Campbell Barton [Tue, 27 Apr 2010 19:21:36 +0000 (19:21 +0000)]
remove redundant argument from mathutils callbacks

10 years agooversight in recent mathutils update. obj.matrix = obj.matrix would call its own...
Campbell Barton [Tue, 27 Apr 2010 18:55:25 +0000 (18:55 +0000)]
oversight in recent mathutils update. obj.matrix = obj.matrix would call its own updage callbacks until it crashed.

10 years agoMake len portable (as best as can tested with a 32 bit machine).
Guillermo S. Romero [Tue, 27 Apr 2010 18:21:49 +0000 (18:21 +0000)]
Make len portable (as best as can tested with a 32 bit machine).

10 years agofix for allocations over 2gig crashing blender (even on 64 bit systems)
Campbell Barton [Tue, 27 Apr 2010 15:46:58 +0000 (15:46 +0000)]
fix for allocations over 2gig crashing blender (even on 64 bit systems)
the memheader len would wrap to a negative number and when freeing it would write into the memheader.

10 years agofix for error in decleration order
Campbell Barton [Tue, 27 Apr 2010 13:22:43 +0000 (13:22 +0000)]
fix for error in decleration order

10 years agoFix [#22173] Texture nodes update every mouse click
Matt Ebb [Tue, 27 Apr 2010 11:09:52 +0000 (11:09 +0000)]
Fix [#22173] Texture nodes update every mouse click

Notifier tweaks

10 years agofactor for setting particle weights
Campbell Barton [Tue, 27 Apr 2010 09:54:36 +0000 (09:54 +0000)]
factor for setting particle weights

10 years agoText button with search icon now updates "live", like in outliner.
Ton Roosendaal [Tue, 27 Apr 2010 09:07:26 +0000 (09:07 +0000)]
Text button with search icon now updates "live", like in outliner.

10 years agofixes for euler order setting when the rotation mode is not euler.
Campbell Barton [Tue, 27 Apr 2010 07:50:31 +0000 (07:50 +0000)]
fixes for euler order setting when the rotation mode is not euler.

10 years agoFix [#22165] "Camera:" field of the Properties>View panel (3D View) has no function...
Matt Ebb [Tue, 27 Apr 2010 06:47:12 +0000 (06:47 +0000)]
Fix [#22165] "Camera:" field of the Properties>View panel (3D View) has no function & is confusing

Cleaned up UI, made it a bit clearer

10 years agoNetRender tweaks by Brecht
Martin Poirier [Tue, 27 Apr 2010 03:14:40 +0000 (03:14 +0000)]
NetRender tweaks by Brecht

* Client connection is made from panel poll functions even if
netrender is disabled
* Network render slave should print when it has connected to server,
now it says "node initiation", I initially thought this meant it was
not connected yet.
* Web interface should auto-refresh, I got confused if job and slaves
were actually found or not.

10 years ago[#21753] allowing to compile on FreeBSD 8.0
Campbell Barton [Mon, 26 Apr 2010 21:28:50 +0000 (21:28 +0000)]
[#21753] allowing to compile on FreeBSD 8.0
patch on libopenjpeg

10 years agobugfix [#22163] Add->mesh->torus is broken
Campbell Barton [Mon, 26 Apr 2010 21:25:14 +0000 (21:25 +0000)]
bugfix [#22163] Add->mesh->torus is broken
recent commit broke this, missed changing double to float.

10 years agopy/rna, euler objects order is now wrapped correctly...
Campbell Barton [Mon, 26 Apr 2010 21:04:42 +0000 (21:04 +0000)]
py/rna, euler objects order is now wrapped correctly...

 eul = bpy.context.object.rotation_euler
 eul.order = 'XZY' # will update the objects setting.

10 years agoAdd missing null check solving crash on texture panel, also fix possible 'freeing...
Daniel Genrich [Mon, 26 Apr 2010 20:30:13 +0000 (20:30 +0000)]
Add missing null check solving crash on texture panel, also fix possible 'freeing NULL' because of misplaced MEM_freeN() in that context.

10 years agoTwo bugfixes from the render branch:
Brecht Van Lommel [Mon, 26 Apr 2010 12:50:48 +0000 (12:50 +0000)]
Two bugfixes from the render branch:
* Fix for FSA update while rendering fix, should set float rect to NULL.
* Fix for irradiance cache mutex unlock that got lost in code changes.

10 years agoOutliner Filtering Bugfix:
Joshua Leung [Mon, 26 Apr 2010 10:31:09 +0000 (10:31 +0000)]
Outliner Filtering Bugfix:

Campbell's changes to make this use fnmatch by default had the case-sensitivity setting inverted. This meant that convenient searches in lowercase were no longer possible by default.

10 years agoFix #22086 and #22125: crashes due to editmode being set on load/undo, fixes
Brecht Van Lommel [Mon, 26 Apr 2010 10:12:03 +0000 (10:12 +0000)]
Fix #22086 and #22125: crashes due to editmode being set on load/undo, fixes
are simple enough, though may still revert this feature if it turns out there
are more problems.

10 years agoProper fix for the Grease Pencil drawing options
Joshua Leung [Mon, 26 Apr 2010 10:02:30 +0000 (10:02 +0000)]
Proper fix for the Grease Pencil drawing options

10 years agoSome work on the cluthered particles UI; lot's more to do
Daniel Salazar [Mon, 26 Apr 2010 09:33:59 +0000 (09:33 +0000)]
Some work on the cluthered particles UI; lot's more to do

10 years agoGot tired of the heavily compressed armature layer icons. Also added
Daniel Salazar [Mon, 26 Apr 2010 08:55:14 +0000 (08:55 +0000)]
Got tired of the heavily compressed armature layer icons. Also added
a smart wide/narrow UI conversion

10 years agoCleanup of grease pencil UI. Ali can you check if what I did in
Daniel Salazar [Mon, 26 Apr 2010 08:05:04 +0000 (08:05 +0000)]
Cleanup of grease pencil UI. Ali can you check if what I did in
gpencil_buttons.c is ok? it was graying out two buttons that shoudn't

10 years agoAssorted code cleanups:
Joshua Leung [Mon, 26 Apr 2010 06:35:25 +0000 (06:35 +0000)]
Assorted code cleanups:
* Removed some un-needed armature code stubs
* Manually copying over the values of constraints in the constraint copy() callbacks should NOT be needed. Removed this from the Spline IK constraint. The manual process is only a hacky aspect of the modifier stack only!

10 years agoBugfix [#22069] Speed-Ipos are not imported correctly from 2.49 to 2.5
Joshua Leung [Mon, 26 Apr 2010 06:33:04 +0000 (06:33 +0000)]
Bugfix [#22069] Speed-Ipos are not imported correctly from 2.49 to 2.5

- IPO-blocks for curves were not getting handled correctly (i.e. no conversion and relinking was taking place) when converting from 2.4x to 2.5
- Old 'speed' IPO's now have their values multiplied by the path length when they are loaded from old 2.4x files so that they work correctly in 2.5.

- Cleaned up a few instances of scruffy code formatted in some weird ad-hoc way.
- Debug prints for the start/end of the file conversion process are now all hidden behind debug-only checks. Unless the way the conversions are done is significantly changed at some point, this should be sufficient...

10 years agoAdd operator undo flags to text datablock related operators
Matt Ebb [Mon, 26 Apr 2010 04:49:33 +0000 (04:49 +0000)]
Add operator undo flags to text datablock related operators

10 years agoPass constraint names as operator properties in constraint operators
Matt Ebb [Mon, 26 Apr 2010 03:42:38 +0000 (03:42 +0000)]
Pass constraint names as operator properties in constraint operators

This is similar to commit revision 22078, but for constraint operators rather
than modifiers, making it possible to use them from scripting.

10 years agoFix [#22160] blender 2.5 alpha2 can't open file grass.blend from blenderguru
Matt Ebb [Mon, 26 Apr 2010 02:23:13 +0000 (02:23 +0000)]
Fix  [#22160] blender 2.5 alpha2 can't open file grass.blend from blenderguru

Textures were being called with multitex_ext with osatex enabled, but NULL derivates.
Fixed this for texture effectors and a couple of other places.

10 years agorna/python mathutils module
Campbell Barton [Sun, 25 Apr 2010 23:33:09 +0000 (23:33 +0000)]
rna/python mathutils module
- return euler rotation values from rna now have correct rotation order.
- mathutils.Euler stored rotation order off by 1. (didnt work at all)
- Euler/Quat/Color sliceing working again.

10 years agohash function for property-rna. eg. hash(bpy.context.object.modifiers)
Campbell Barton [Sun, 25 Apr 2010 21:13:42 +0000 (21:13 +0000)]
hash function for property-rna. eg. hash(bpy.context.object.modifiers)

10 years ago[#22151] Modifier UI crash
Campbell Barton [Sun, 25 Apr 2010 19:56:43 +0000 (19:56 +0000)]
[#22151] Modifier UI crash
own error when editing context return values. r28401

10 years agopy api
Campbell Barton [Sun, 25 Apr 2010 19:27:59 +0000 (19:27 +0000)]
py api
- mathutils.Color.hsv attribute. eg. material.diffuse_color.hsv = 0.2, 0.8, 0.4
- Vector/Euler/Quaternion/Color now only take a single seq arg.
- internal function for parsing arrays. (cleanup messy internal list/vector/tuple/seq parsing)
- didnt update rigify yet.

10 years ago== Sequencer ==
Peter Schlaile [Sun, 25 Apr 2010 15:39:04 +0000 (15:39 +0000)]
== Sequencer ==

Forgot some changes for multicam support.

10 years agocorrect typo's
Campbell Barton [Sun, 25 Apr 2010 15:24:18 +0000 (15:24 +0000)]
correct typo's

10 years agopy console autocomp. fix
Campbell Barton [Sun, 25 Apr 2010 15:21:46 +0000 (15:21 +0000)]
py console autocomp. fix
 import missing_mod
...would raise an error.

10 years agobugfix [#22117] Memory Error messages with Spline IK
Campbell Barton [Sun, 25 Apr 2010 13:27:52 +0000 (13:27 +0000)]
bugfix [#22117] Memory Error messages with Spline IK
chainlen was initialized as 0

10 years ago== Sequencer ==
Peter Schlaile [Sun, 25 Apr 2010 12:53:39 +0000 (12:53 +0000)]
== Sequencer ==

This adds MULTICAM-editing support for blender. (Well, the beginning of.)

There is now a new effect track, named MULTICAM, which just selects
one of the lower tracks.

Doesn't sound that exciting, but if you combine this with A/B-Trim (moving
split points of two directly connected tracks around, while magically
resizing both strips, something to be added), you just do:

* add several tracks for your camera angles
* (optionally) sync those tracks
* add one multicam track on top

Use that multicam-track to edit your movie. (Either using fcurves on the
multicam source selector or using knife-tool and A/B-Trim.)

Compare that to:

* add several tracks
* add cross fades between them
* do some python scripting to add several fcurves to make that beast
  somewhat work.
* cry out loud, using it, if you have to move cut points around

Alternatively, even harder:

* just edit the old way and put strip after strip

You might think, that this isn't really helpfull for animators, but
consider using scene-strips (in OpenGL-mode) for input, that are set for
different camera angles and can now be intercut a lot more easily...

Also: small fix on the way: the speed effect can now be used in cascade.
(Don't know, if anyone used it that way, but now it works.)

10 years agoFix #22123 and #22124: some problems with mutex locks, also tweak to
Brecht Van Lommel [Sun, 25 Apr 2010 10:49:13 +0000 (10:49 +0000)]
Fix #22123 and #22124: some problems with mutex locks, also tweak to
how removing opengl textures from outside main thread is done so it
happens as part of the main loop.

10 years agoMesh Deform Modifier: fix problem with saving.
Brecht Van Lommel [Sun, 25 Apr 2010 10:27:45 +0000 (10:27 +0000)]
Mesh Deform Modifier: fix problem with saving.

10 years agoworkaround for (what looks like) a bug in python's StringIO module. should investigat...
Campbell Barton [Sun, 25 Apr 2010 04:06:34 +0000 (04:06 +0000)]
workaround for (what looks like) a bug in python's StringIO module. should investigate further but for now this works.

10 years agominor mathutils update
Campbell Barton [Sun, 25 Apr 2010 03:34:16 +0000 (03:34 +0000)]
minor mathutils update
- docstring for Euler.rotate
- rotate_eul, use upper case in Py and C.
- use less verbose repr method.

10 years agore-arrange modifier and blenkernel to overcome some linking problems that stopped...
Campbell Barton [Sun, 25 Apr 2010 01:10:03 +0000 (01:10 +0000)]
re-arrange modifier and blenkernel to overcome some linking problems that stopped modifiers being able to build when using some blender-kernel defined stuff

10 years agofix for a library linking problem where a proxy object linked into a blend would...
Campbell Barton [Sun, 25 Apr 2010 00:19:10 +0000 (00:19 +0000)]
fix for a library linking problem where a proxy object linked into a blend would cause the proxy, driver's ID to be directly linked as well.
eg. character.blend -> anim.blend -> comp.blend
... Would link the character.blend directly into comp.blend because on driver ID's.

In this case id_lib_extern doenst need to be called because the object its linked from is a library.

10 years agoRemove duplicated "modifiers".
Guillermo S. Romero [Sat, 24 Apr 2010 22:34:18 +0000 (22:34 +0000)]
Remove duplicated "modifiers".

10 years agofix for crash reading console history.
Campbell Barton [Sat, 24 Apr 2010 21:14:05 +0000 (21:14 +0000)]
fix for crash reading console history.

10 years agopy api: fix for context returning None for an empty list such as 'context.selected_ob...
Campbell Barton [Sat, 24 Apr 2010 19:26:05 +0000 (19:26 +0000)]
py api: fix for context returning None for an empty list such as 'context.selected_objects', now returns []

10 years ago[#21218] Strange Extrude bug...
Martin Poirier [Sat, 24 Apr 2010 18:11:28 +0000 (18:11 +0000)]
[#21218] Strange Extrude bug...

Hide Extrude Type property (it's not supposed to be changed manually).

10 years agoFix for #22135, loading ffmpeg now before .B25.blend is loaded.
Joerg Mueller [Sat, 24 Apr 2010 16:35:16 +0000 (16:35 +0000)]
Fix for #22135, loading ffmpeg now before .B25.blend is loaded.

10 years agoMakefile fix: new modifiers directory had to be compiled too.
Ton Roosendaal [Sat, 24 Apr 2010 12:37:17 +0000 (12:37 +0000)]
Makefile fix: new modifiers directory had to be compiled too.

10 years agowarning cleanup, also made voxel.c and volumetric.c use BM_INLINE define rather then...
Campbell Barton [Sat, 24 Apr 2010 10:08:07 +0000 (10:08 +0000)]
warning cleanup, also made voxel.c and volumetric.c use BM_INLINE define rather then having their own ifdefs in each file.

10 years agosub_v3_v3v3 --> sub_v3_v3 (where possible)
Campbell Barton [Fri, 23 Apr 2010 23:57:00 +0000 (23:57 +0000)]
sub_v3_v3v3 --> sub_v3_v3 (where possible)

10 years agostring number decoding didnt check for win32 slash & minor adjustments to some other...
Campbell Barton [Fri, 23 Apr 2010 23:01:50 +0000 (23:01 +0000)]
string number decoding didnt check for win32 slash & minor adjustments to some other path funcs (no functional change).

10 years agoBGE Fix: [#19951] mouse over sensor is broken with letterboxing framing
Dalai Felinto [Fri, 23 Apr 2010 22:48:26 +0000 (22:48 +0000)]
BGE Fix: [#19951] mouse over sensor is broken with letterboxing framing

Tested with GameLogic.mouse.position and mouse over sensor.
It should be working with other mouse sensor as well. If not, please help to test and report a bug.
(couldn't test blenderplayer but it should be working there as well).

(Benoit, this is the same patch that I sent you. I hope it's OOP enough. Looking forward to hear from you on that)

I believe that this was the last "mouse" related bug we had reported. MouseLoook scripts should be working 100% in Blender/BGE 2.50 now \o/

10 years agounix style outliner name wildcards *.*, Any.???, etc (using fnmatch), also removed...
Campbell Barton [Fri, 23 Apr 2010 22:08:11 +0000 (22:08 +0000)]
unix style outliner name wildcards *.*, Any.???, etc (using fnmatch), also removed last beos reference :)

10 years agopatch by by xat "Partial fix for bug #22142"
Tom Musgrove [Fri, 23 Apr 2010 20:05:16 +0000 (20:05 +0000)]
patch by by xat "Partial fix for bug #22142"

10 years agoSome fixes from the render branch:
Brecht Van Lommel [Fri, 23 Apr 2010 18:02:50 +0000 (18:02 +0000)]
Some fixes from the render branch:

* Take border render into account when drawing grid before for render
  result becomes visible.
* Use antialiasing for rendering icon previews.
* Fix Full Sample not drawing render result while rendering.
* Mesh Deform Modifier: also forgot to commit this file.

10 years agoQuick fix, just in case the mesh has no vertex groups, there won't be a crash!
Joshua Leung [Fri, 23 Apr 2010 12:15:50 +0000 (12:15 +0000)]
Quick fix, just in case the mesh has no vertex groups, there won't be a crash!

10 years agoBugfix #22101: Envelopes dont respect armature modifier vertex group mask
Joshua Leung [Fri, 23 Apr 2010 12:11:56 +0000 (12:11 +0000)]
Bugfix #22101: Envelopes dont respect armature modifier vertex group mask

Changed the point where the vertex groups are retrieved. Hopefully this commit doesn't break any cases I haven't thought of...

10 years agoalways print reports immediately when running in background mode.
Campbell Barton [Fri, 23 Apr 2010 11:48:17 +0000 (11:48 +0000)]
always print reports immediately when running in background mode.

10 years agoMesh Deform Modifier: compress static binding weights better, threshold
Brecht Van Lommel [Fri, 23 Apr 2010 11:19:06 +0000 (11:19 +0000)]
Mesh Deform Modifier: compress static binding weights better, threshold
is still set very low so in many cases it could be even smaller, but being
a bit conservative here to try to avoid breaking rigs.

This is not forward-compatible, i.e. loading new files in older blender
versions will loose the binding.

10 years agosvn merge -r28371:28372
Campbell Barton [Fri, 23 Apr 2010 09:24:22 +0000 (09:24 +0000)]
svn merge -r28371:28372
console history save/load from joe

10 years agofix for camera switching, broke 28359
Campbell Barton [Fri, 23 Apr 2010 08:39:10 +0000 (08:39 +0000)]
fix for camera switching, broke 28359

10 years agoTweaks to Render Layers panel
Matt Ebb [Fri, 23 Apr 2010 06:33:30 +0000 (06:33 +0000)]
Tweaks to Render Layers panel

'Mask layers' should be visible always, they still work to mask out objects on
layers when zmask isn't on (zmask is slightly different.. a bit confusing)

Icon tweaks too

10 years agoSpline IK - Influence Control
Joshua Leung [Fri, 23 Apr 2010 05:14:00 +0000 (05:14 +0000)]
Spline IK - Influence Control

Made the 'Influence' slider work for Spline IK too, and made that setting visible now that it works.

Note that there is still some popping that can occur when going to/from influence = 0.0. I'm not sure exactly what's causing this yet, but hopefully it won't be too noticeable in practice.

10 years agoImproved the Outliner live-search so that in the default scene, doing a simple search...
Joshua Leung [Fri, 23 Apr 2010 04:16:08 +0000 (04:16 +0000)]
Improved the Outliner live-search so that in the default scene, doing a simple search for "cu" (to show the default cube only) will show the matching item.

Previously, because the 'Scene' item is encountered first, all sub-items like this would be ignored. Now, when a non-matching item is encountered, it's subtree is checked as per normal, as long as the item was expanded (so that its subtree is still visible).

10 years agoOutliner Live-Search Bugfixes:
Joshua Leung [Fri, 23 Apr 2010 03:53:05 +0000 (03:53 +0000)]
Outliner Live-Search Bugfixes:

Ton's commits missed the RNA changes needed to make this work (i.e. the search field was un-defined). This has now been added, and the search field has the 'search eyeglass' icon to make its purpose clearer.

I've also taken this opportunity to restore the search matching flags (i.e. case sensitivity and complete vs partial matches), making these separate toggle options instead. The old searching operator stuff can probably be removed now?

10 years agoFix [#22121] Object Mapping - "clone" linked w/previous material/texture
Matt Ebb [Fri, 23 Apr 2010 02:25:19 +0000 (02:25 +0000)]
Fix [#22121] Object Mapping - "clone" linked w/previous material/texture
after Make Single User

Was an error in UI display of node materials/texture lists, combined with a
very weird node setup.

I will be a very happy person the day we finally get rid of the terribly
confusing materials-inside-materials behaviour.

10 years agoFix [#21582] Adjusting material color (color picker) crashes
Matt Ebb [Fri, 23 Apr 2010 01:41:01 +0000 (01:41 +0000)]
Fix [#21582] Adjusting material color (color picker) crashes

Thanks to the testers for helping diagnose this!

10 years agoFix [#22120] Physics modifiers can't be removed
Matt Ebb [Fri, 23 Apr 2010 01:06:28 +0000 (01:06 +0000)]
Fix [#22120] Physics modifiers can't be removed

10 years agoFix for small error in r28348, was preventing texture influence panel from displaying
Matt Ebb [Fri, 23 Apr 2010 00:05:46 +0000 (00:05 +0000)]
Fix for small error in r28348, was preventing texture influence panel from displaying

10 years agorename scene.visible_layers -> layers, since layers are used for editing, export...
Campbell Barton [Thu, 22 Apr 2010 20:00:19 +0000 (20:00 +0000)]
rename scene.visible_layers -> layers, since layers are used for editing, export, rendering & anim evaluation.

10 years agochaning the camera from the scene buttons didnt update the views. moved some scene...
Campbell Barton [Thu, 22 Apr 2010 19:57:18 +0000 (19:57 +0000)]
chaning the camera from the scene buttons didnt update the views. moved some scene/view functions from view3d_view.c into BKE_screen since they need to be accessed when changing cameras from outside the view.

10 years agoskip instancing objects/groups when linking in a scene, the scene has references...
Campbell Barton [Thu, 22 Apr 2010 18:19:21 +0000 (18:19 +0000)]
skip instancing objects/groups when linking in a scene, the scene has references to the objects/groups its self.

10 years agoHeader button for search filter in outliner.
Ton Roosendaal [Thu, 22 Apr 2010 18:17:17 +0000 (18:17 +0000)]
Header button for search filter in outliner.

10 years ago- Added search filter in outliner header. Only activates filter on enter,
Ton Roosendaal [Thu, 22 Apr 2010 18:16:56 +0000 (18:16 +0000)]
- Added search filter in outliner header. Only activates filter on enter,
  should make it do 'live' search while types.
- Connecting Viewer nodes sometimes didn't recalculate, depsgraph needed

10 years agorna rename start/end --> frame_start/end
Campbell Barton [Thu, 22 Apr 2010 17:35:00 +0000 (17:35 +0000)]
rna rename start/end --> frame_start/end

10 years agoonly override start and end frames with particle's if the partices are emitters....
Campbell Barton [Thu, 22 Apr 2010 16:23:44 +0000 (16:23 +0000)]
only override start and end frames with particle's if the partices are emitters. Was very confusing for hair baking.

10 years agoavoid try/except with in texture UI
Campbell Barton [Thu, 22 Apr 2010 16:22:47 +0000 (16:22 +0000)]
avoid try/except with in texture UI

10 years agoRemove unused var from blenfont.
Diego Borghetti [Thu, 22 Apr 2010 12:05:19 +0000 (12:05 +0000)]
Remove unused var from blenfont.

10 years agowarning cleanup
Matt Ebb [Thu, 22 Apr 2010 11:35:36 +0000 (11:35 +0000)]
warning cleanup

10 years agoFix [#22088] Object's material changes (links) to other when moving an object
Matt Ebb [Thu, 22 Apr 2010 11:35:11 +0000 (11:35 +0000)]
Fix [#22088] Object's material changes (links) to other when moving an object
to an other layer

WM_operator_props_popup() and subsequent block handle function redo_cb()
was popping an operator undo, without having pushed one previously -
this would undo one too many times when using the properties invoke popup.

Fixed by adding an undo push to WM_operator_props_popup()

10 years agoBugFix:
Diego Borghetti [Thu, 22 Apr 2010 10:56:45 +0000 (10:56 +0000)]
[#20854] PROPERTIES STAMP: Rendering stamp flickers in output renders

Blenfont was not thread safe, that is why one thread can change
the font properties (size, dpi, color, etc) at the same time
that the stamp draw on the image, and then the problem.

To make blenfont thread safe I have to change two important things:

1) Every BLF_* function take one argument, the font id.
2) We have two new function to make font "thread safe":

This two function are for case like stamp, that need and own font
that don't share the glyph cache, so can draw without problem
in a different thread.

Why the BLF_*_unique function ?

Because blenfont keep only one copy of a font and keep a list of
"glyph cache". Every glyph cache have size and dpi, so if two
different thread access the same font at the same time, they can
change value and finish with something like the stamp problem.

Why don't remove the glyph cache ?

Because if we do that, we finish with a font object for every size
and dpi, and the stamp is really a special case that happen in
the rendering process, so I really thing is better keep the
glyph cache and make this two new function to handle this
special case.

(When I say "font object" I mean have the same freetype font multiple
times just to have differents size and dpi)

As Matt point we still can have one case that two thread access
the BLF_*_unique function at the same time, but I am looking to
fix this with some class of thread lock.

For now I test and work fine, so if some one found problem, please
let me know.

Campbell I have to change the python api (python/generic/blf_api.c)
to the new syntax, so maybe you can take a look at this.

10 years agorna: added lib.parent access and made filename editable.
Campbell Barton [Thu, 22 Apr 2010 08:25:05 +0000 (08:25 +0000)]
rna: added lib.parent access and made filename editable.

10 years agoFix [#22097] missing panels in texture tab
Matt Ebb [Thu, 22 Apr 2010 06:59:41 +0000 (06:59 +0000)]
Fix [#22097] missing panels in texture tab

Made texture/texture slot context a bit less flaky when dealing with active material and
texture nodes inside a node material in the node editor. Now if the active material has
nodes enabled, and there are no active material/texture nodes inside it, nothing will be
shown in the texture properties (similar to 2.49).

10 years agoFix [#22078] Cannot apply modifier in python (context error)
Matt Ebb [Thu, 22 Apr 2010 01:55:10 +0000 (01:55 +0000)]
Fix [#22078] Cannot apply modifier in python (context error)

Previously all modifier operators relied on the buttons layout data context pointer to
decide which modifier to work on. This meant that these operators would only work
from from the properties panel, and not from scripting/macros or for operator redo.

This commit makes all modifier operators take the modifier name as an operator
property, so the operators can be re-done or executed outside of the modifier panel.
When invoking the operators from the modifier panel, they automatically fill in the
operator property from context.

This isn't a perfect API design, but it does bring these operators in line with the design
of being able to access all UI functionality via other means like scripts.

10 years agoFix for bug in r28320, sizeof(pointer) was breaking path functions
Matt Ebb [Thu, 22 Apr 2010 01:06:59 +0000 (01:06 +0000)]
Fix for bug in r28320, sizeof(pointer) was breaking path functions

10 years agocopying values from int buttons were adding floating point 0.00000's
Campbell Barton [Wed, 21 Apr 2010 21:43:29 +0000 (21:43 +0000)]
copying values from int buttons were adding floating point 0.00000's

10 years agoSave a Copy, (operator option for save as),
Campbell Barton [Wed, 21 Apr 2010 19:14:20 +0000 (19:14 +0000)]
Save a Copy, (operator option for save as),
Too many times we have images in blend files that are just saved renders.

10 years agofix [#22080] double clicking a file in file browser to open a file doesn't work,...
Andrea Weikert [Wed, 21 Apr 2010 18:13:26 +0000 (18:13 +0000)]
fix [#22080] double clicking a file in file browser to open a file doesn't work, r28290 win32
* Forgot to move keymap back from KM_PRESS to KM_CLICK (was testing code). KM_PRESS doesn't play nicely with double click

10 years agofilter 'Enable' wasnt working.
Campbell Barton [Wed, 21 Apr 2010 16:50:51 +0000 (16:50 +0000)]
filter 'Enable' wasnt working.

10 years agofix for divide by zero on vertex dirt script, show from the vertex paint menu
Campbell Barton [Wed, 21 Apr 2010 16:22:37 +0000 (16:22 +0000)]
fix for divide by zero on vertex dirt script, show from the vertex paint menu

10 years agofix for crash drawing weights in lattice editmode.
Campbell Barton [Wed, 21 Apr 2010 14:46:32 +0000 (14:46 +0000)]
fix for crash drawing weights in lattice editmode.

10 years agoreplace add_v3_v3v3() --> add_v3_v3() where possible
Campbell Barton [Wed, 21 Apr 2010 12:27:48 +0000 (12:27 +0000)]
replace add_v3_v3v3() --> add_v3_v3() where possible

10 years agooption to use curve point weights to influence particle effectors.
Campbell Barton [Wed, 21 Apr 2010 11:59:47 +0000 (11:59 +0000)]
option to use curve point weights to influence particle effectors.

10 years agopy api. bpy.utils.relpath() function.
Campbell Barton [Wed, 21 Apr 2010 09:27:36 +0000 (09:27 +0000)]
py api. bpy.utils.relpath() function.

10 years agobugfix [#22098] Binreloc buffer overrun
Campbell Barton [Wed, 21 Apr 2010 07:59:16 +0000 (07:59 +0000)]
bugfix [#22098] Binreloc buffer overrun
from Dan Eicher (dna)

there are many of these in blender however this case could happen quite easily.

10 years agobugfix [#22091] Crashing on Add Shortcut
Campbell Barton [Wed, 21 Apr 2010 07:56:34 +0000 (07:56 +0000)]
bugfix [#22091] Crashing on Add Shortcut

10 years ago[#22100] Jpeg2000 null pointer dereference
Campbell Barton [Wed, 21 Apr 2010 07:49:06 +0000 (07:49 +0000)]
[#22100] Jpeg2000 null pointer dereference
found by Dan Eicher (dna)

10 years agoFix [#22099] Interactive Loopcut hs anoyin problem
Matt Ebb [Wed, 21 Apr 2010 04:21:27 +0000 (04:21 +0000)]
Fix [#22099] Interactive Loopcut hs anoyin problem

Made the loop cut confirmation (when finding an edge ring to cut) happen on
mouse press, rather than release.

This has a nice side effect when using the 'release confirm' option, combining
the two steps into one - with this on you can click once to immediately place the
cut in the center, or click+drag to move the cut line where you want it to.


10 years agoFix [#22082] World gradients look like poo
Matt Ebb [Wed, 21 Apr 2010 02:48:49 +0000 (02:48 +0000)]
Fix [#22082] World gradients look like poo

Added dither support to in-progress render float->byte conversions.