blender.git
8 years agoFrom the OFTL: Pad-period refreshes File browser.
Ton Roosendaal [Wed, 9 Mar 2011 15:19:53 +0000 (15:19 +0000)]
From the OFTL: Pad-period refreshes File browser.

8 years agoTodo item: defaulting newly created Property editors to vertical.
Ton Roosendaal [Wed, 9 Mar 2011 15:12:33 +0000 (15:12 +0000)]
Todo item: defaulting newly created Property editors to vertical.
(At least until horizontal layouts work acceptable)

8 years agoFix for [#26420] F-Curve key handles affected by NLA strip position
Janne Karhu [Wed, 9 Mar 2011 15:04:09 +0000 (15:04 +0000)]
Fix for [#26420] F-Curve key handles affected by NLA strip position
* NLA timing was only applied to fcurve keys, but not handles, so strange things happened.
* This time tweaking was missed in selections too, so fcurve handles couldn't be selected properly either if the NLA strip was moved from frame 1.

8 years agoFix for [#26372] Objects as PS Hair displays and renders differently
Janne Karhu [Wed, 9 Mar 2011 14:18:33 +0000 (14:18 +0000)]
Fix for [#26372] Objects as PS Hair displays and renders differently
* Grid distribution isn't really suited for hair, so this is now disabled.
* Setting a jittered distribution with particles/face = 1 now creates particles on the center of faces.
* Quite a bit of cleanup of the whole particle distribution code.

8 years agoFix [#26012] Import Collada: instance_node incorrectly handled
Nathan Letwory [Wed, 9 Mar 2011 14:16:21 +0000 (14:16 +0000)]
Fix [#26012] Import Collada: instance_node incorrectly handled
Reported by David Roy

When <instance_node>s where read, their transformation matrix got overwritten with the transform matrix
of their own node, not taking into account the parent node transformation. Instead of doing
that we now get the parent node transformation matrix and apply it to its own, and prevent
caller from overwriting this new transformation matrix.

8 years agoBugfix #26424
Ton Roosendaal [Wed, 9 Mar 2011 13:47:54 +0000 (13:47 +0000)]
Bugfix #26424

Image Editor: Jkey 'swap render slot' should not be in the undo
system.

8 years agomake python UV functions use a popup UI rather then redo UI, they are not fast enough.
Campbell Barton [Wed, 9 Mar 2011 11:01:44 +0000 (11:01 +0000)]
make python UV functions use a popup UI rather then redo UI, they are not fast enough.

8 years agopy/ui: ensure extensions which add draw functions for menus/headers/panels always...
Campbell Barton [Wed, 9 Mar 2011 10:57:56 +0000 (10:57 +0000)]
py/ui: ensure extensions which add draw functions for menus/headers/panels always get the default operator context, not the one that was last set.

8 years agolightmap pack: made into an operator & added to UV calc menu
Campbell Barton [Wed, 9 Mar 2011 10:49:12 +0000 (10:49 +0000)]
lightmap pack: made into an operator & added to UV calc menu

8 years agoworking with bpy 2.5x api, convert into operator next.
Campbell Barton [Wed, 9 Mar 2011 08:35:17 +0000 (08:35 +0000)]
working with bpy 2.5x api, convert into operator next.

8 years agoupdate for blender as a py module & python 3.2
Campbell Barton [Wed, 9 Mar 2011 04:58:44 +0000 (04:58 +0000)]
update for blender as a py module & python 3.2

8 years agoupdate for py3.x syntax and mostly pep8 compliant
Campbell Barton [Wed, 9 Mar 2011 04:08:38 +0000 (04:08 +0000)]
update for py3.x syntax and mostly pep8 compliant

8 years agocopy from 2.4x, update to 2.5x next.
Campbell Barton [Wed, 9 Mar 2011 04:01:40 +0000 (04:01 +0000)]
copy from 2.4x, update to 2.5x next.
svn cp https://svn.blender.org/svnroot/bf-blender/branches/blender2.4/release/scripts/uvcalc_lightmap.py release/scripts/op/uvcalc_lightmap.py

8 years agomoving to addons & splitting for lazy loading of eps/png/svg
Campbell Barton [Wed, 9 Mar 2011 02:07:44 +0000 (02:07 +0000)]
moving to addons & splitting for lazy loading of eps/png/svg

TODO, add to defaults when startup.blend is updated.

8 years agoadd stddef.h include for offsetof macro for gcc 4.6 compat.
Campbell Barton [Wed, 9 Mar 2011 02:06:21 +0000 (02:06 +0000)]
add stddef.h include for offsetof macro for gcc 4.6 compat.

8 years agoimage.depth, 96/128 for float color images, was 24/32 for byte images.
Campbell Barton [Wed, 9 Mar 2011 01:25:59 +0000 (01:25 +0000)]
image.depth, 96/128 for float color images, was 24/32 for byte images.
also use <> for system includes

8 years agoFix [#26037] Import Collada crashes Blender
Nathan Letwory [Wed, 9 Mar 2011 01:13:28 +0000 (01:13 +0000)]
Fix [#26037] Import Collada crashes Blender
Submitted by David Roy

Multiple nodes can reference the same geometry, and specify the same materials. This lead
to the import code overwriting material mappings of faces in a destructive way. Instead of
just writing the material bindings always we now keep book of what geometry+material mapping
we've already handled.

8 years agoCMake
Campbell Barton [Wed, 9 Mar 2011 00:23:26 +0000 (00:23 +0000)]
CMake
- temp disable installing plugins dir, since its not used for 2.5x
- OSX wasnt getting text copied.

8 years agodisable openexr and collada for mingw, give linking errors.
Campbell Barton [Tue, 8 Mar 2011 23:12:45 +0000 (23:12 +0000)]
disable openexr and collada for mingw, give linking errors.

8 years ago- correct python3.1 warning message.
Campbell Barton [Tue, 8 Mar 2011 22:11:15 +0000 (22:11 +0000)]
- correct python3.1 warning message.
- for new shadow only enum, use humanly readable RNA enum values.
- update cmake unix example for custom python.

8 years agoSkip materials that are invalid.
Nathan Letwory [Tue, 8 Mar 2011 20:41:43 +0000 (20:41 +0000)]
Skip materials that are invalid.

8 years agoApply a small patch from mikktspace author Morten Mikkelsen (cosmetic changes).
Nathan Letwory [Tue, 8 Mar 2011 20:39:32 +0000 (20:39 +0000)]
Apply a small patch from mikktspace author Morten Mikkelsen (cosmetic changes).

8 years agoPrevent memory corruption when using fixed texture and fast strokes with
Sergey Sharybin [Tue, 8 Mar 2011 20:31:45 +0000 (20:31 +0000)]
Prevent memory corruption when using fixed texture and fast strokes with
big spacing. Not sure if it's the best solution or it should be fixed when
calculating new areas.

It'll be cool if somebody else familiar with this area will check this.

8 years agoFix #26408: [texture paint] brush spacing
Sergey Sharybin [Tue, 8 Mar 2011 19:52:35 +0000 (19:52 +0000)]
Fix #26408: [texture paint] brush spacing

Implemented non-spacing strokes (which are making paint step at each
mouse-move event).

8 years agoFix for [#26322] x-mirror gives wrong results while editing hair particles
Janne Karhu [Tue, 8 Mar 2011 16:52:10 +0000 (16:52 +0000)]
Fix for [#26322] x-mirror gives wrong results while editing hair particles
* Tsk! Particle mirroring was working fine for the case where subsurf modifier was before particles (orcos are transformed in this case), but not the other way around (unnecessary inverse transform of orcos).
* Not really satisfied with having to check for the CD_ORIGINDEX layer, so if Brecht or somebody else knows a better way then please change this :)

8 years agoBugfix & Feature fix: Only Shadow Material options
Ton Roosendaal [Tue, 8 Mar 2011 16:08:43 +0000 (16:08 +0000)]
Bugfix & Feature fix: Only Shadow Material options

Patch from Miika Hämäläinen.

The old Material "Only Shadow" used an ancient 'best guess'
formula using Lamp Distance and some averaging for converting
shadow values to alpha.
A couple of bug reporters already complained about the not
very predictable renders. Miika fixed this by adding two
new options, to only give the true shadow factor exclusively,
or to give a result including light intensity values.

More info:
http://projects.blender.org/tracker/index.php?func=detail&aid=26413&group_id=9&atid=127

8 years agoApply [#26383] Triangle fans support for COLLADA importer
Nathan Letwory [Tue, 8 Mar 2011 13:26:41 +0000 (13:26 +0000)]
Apply [#26383] Triangle fans support for COLLADA importer
Submitted by Alexey Zakharov

This patch adds support to Blender for reading geometry data that's
represented as triangle fans.

8 years agoBugfix #25422
Ton Roosendaal [Tue, 8 Mar 2011 13:02:26 +0000 (13:02 +0000)]
Bugfix #25422

In some cases the User Preferences UI was "vibrating" on redraws.
Could only be redone by some, but this fix is confirmed to work.

8 years agoCMake: removed blenderplayer from install target by accident with recent commit.
Campbell Barton [Tue, 8 Mar 2011 09:01:22 +0000 (09:01 +0000)]
CMake: removed blenderplayer from install target by accident with recent commit.

8 years agoApply [#26311] Collada Exporter Crash on Win64 build
Nathan Letwory [Tue, 8 Mar 2011 08:33:52 +0000 (08:33 +0000)]
Apply [#26311] Collada Exporter Crash on Win64 build
Submitted by Filiciss Muhgue

Selecting COLLADA export after starting blender into default scene Blender would crash, due to misreading the path string (no file saved yet, so it was zero).

8 years agofix bug [#26315] Background and 3D view mistakes
Campbell Barton [Tue, 8 Mar 2011 07:44:30 +0000 (07:44 +0000)]
fix bug [#26315] Background and 3D view mistakes
The bug is caused by a fix for [#22111], commits r29356, r28545.

exiting localview would set the rv3d->view but use the original rv3d->viewquat.

8 years agoneeded removing here too
Campbell Barton [Tue, 8 Mar 2011 07:33:26 +0000 (07:33 +0000)]
needed removing here too

8 years agoremove unused RegionView3D retopo pointer and set quat printing to const args.
Campbell Barton [Tue, 8 Mar 2011 07:31:42 +0000 (07:31 +0000)]
remove unused RegionView3D retopo pointer and set quat printing to const args.

8 years agoOld IDProperty bug, (from original commit r8916),
Campbell Barton [Tue, 8 Mar 2011 03:14:59 +0000 (03:14 +0000)]
Old IDProperty bug, (from original commit r8916),
found crash while changing operator string size.

Shrinking arrays never worked right.
rather then "newlen * sizeof(...)", it would memcpy "newlen * oldlen * sizeof(...)" which always goes over the array bounds.

8 years agoui_textedit_delete_selection() could access past the array bounds.
Campbell Barton [Tue, 8 Mar 2011 02:24:29 +0000 (02:24 +0000)]
ui_textedit_delete_selection() could access past the array bounds.

8 years agopy-api utf8/filepaths:
Campbell Barton [Tue, 8 Mar 2011 01:28:10 +0000 (01:28 +0000)]
py-api utf8/filepaths:
in function PyC_UnicodeAsByte(), replace code copied from python with PyUnicode_EncodeFSDefault(), new in py3.2.

8 years agopatch [#26404] UnicodeDecodeError
Campbell Barton [Tue, 8 Mar 2011 01:23:42 +0000 (01:23 +0000)]
patch [#26404] UnicodeDecodeError
from user: perfection cat (sindra1961)

8 years agotemp workaround [#26397] Console error when selecting certain entries in the Help...
Campbell Barton [Tue, 8 Mar 2011 01:03:27 +0000 (01:03 +0000)]
temp workaround [#26397] Console error when selecting certain entries in the Help Menu (Report a Bug)
bug in python 3.2, reported upstream: http://bugs.python.org/issue11432

8 years agoFix keymap operator polling functions to be a bit safer.
Martin Poirier [Mon, 7 Mar 2011 23:53:08 +0000 (23:53 +0000)]
Fix keymap operator polling functions to be a bit safer.

8 years agoCMake/OSX: Bugfix [#26375]: Add default values for the OSX architecture: x86_64 ...
Damien Plisson [Mon, 7 Mar 2011 21:28:36 +0000 (21:28 +0000)]
CMake/OSX: Bugfix [#26375]: Add default values for the OSX architecture: x86_64 (also used to select the python dynlibs that'll be bundled with the application).
Set deployment target to be 10.5 by default.

Fix broken build introduced by recent source/creator/CMakeList.txt cleanup

8 years agoBGE internal cosmetic changes - Replacing hardcoded values with new defines
Dalai Felinto [Mon, 7 Mar 2011 19:14:17 +0000 (19:14 +0000)]
BGE internal cosmetic changes - Replacing hardcoded values with new defines
---------------------------------------------------------------------------
The Rasterizer code was relying in the values defined on TF_ DNA files. I'm working in the recode of TexFace, bringing the options to the material panel and ran into those cases. They are hard to spot and add a lot of the "magic" effect to the code. Hardcoded values are at least easy to spot. We (still) have a few defines duplicated, relying on each other (a flag previously defined in the code is checked later on but using a different define (although with same value. (e.g. TF_BMFONT and RAS_RENDER_3DPOLYGON_TEXT). It's hell =)
I'm adding some comments to help on that.

Things will be revamped anyways, but it's nice to keep the code a bit more coherent before the real feature commit. That's all, thanks for listening.

8 years agoBugfix #26394
Ton Roosendaal [Mon, 7 Mar 2011 18:05:41 +0000 (18:05 +0000)]
Bugfix #26394

Using Marker menu (dopesheet) didn't work, the operators themselves
were checking Y coordinate of event.
Handlers also support boundbox checks. For this case it needed a bit
special handling. But works :)

8 years agoFrom the OFTL:
Ton Roosendaal [Mon, 7 Mar 2011 14:56:19 +0000 (14:56 +0000)]
From the OFTL:

Arrows-move-cursor is back!
It now works for any running modal operator that doesn't handle own
arrow keys. Might need to become more restricted though, some modal
ops don't need it. Want to investigate that still where conflicts are.

8 years agouse set's, since pythons 3.2's optimizer converts these to frozensets, lookups are...
Campbell Barton [Mon, 7 Mar 2011 13:23:45 +0000 (13:23 +0000)]
use set's, since pythons 3.2's optimizer converts these to frozensets, lookups are also faster then tuples (though this isn't a bottleneck).

8 years agoDrop support for python 3.1.
Campbell Barton [Mon, 7 Mar 2011 11:53:40 +0000 (11:53 +0000)]
Drop support for python 3.1.
for building py3.2 on *nix see:
  http://wiki.blender.org/index.php?title=Dev:2.5/Doc/Building_Blender/Linux/Troubleshooting#Python

also fixed possible buffer overrun with getting the fake filepath for a blender textblock.

8 years agoBugfix #26388
Ton Roosendaal [Mon, 7 Mar 2011 11:51:09 +0000 (11:51 +0000)]
Bugfix #26388

Actually a todo item I forgot:

Material nodes previews now follow the scene "color managenent"
setting.

8 years agoPy/Operators: FBX Exporter setting order was still randomized.
Campbell Barton [Mon, 7 Mar 2011 08:57:35 +0000 (08:57 +0000)]
Py/Operators: FBX Exporter setting order was still randomized.

Some lines removed recently I thought were are needed were there so classes that use mix-ins keep the argument order.

8 years agoPyAPI: allow subclasses of io_utils.ExportHelper to set when the extension is enforced.
Campbell Barton [Mon, 7 Mar 2011 08:01:38 +0000 (08:01 +0000)]
PyAPI: allow subclasses of io_utils.ExportHelper to set when the extension is enforced.

8 years agose BLI_snprintf() for msvc compat, cleanup CMake file, some bad comments left in.
Campbell Barton [Mon, 7 Mar 2011 03:57:04 +0000 (03:57 +0000)]
se BLI_snprintf() for msvc compat, cleanup CMake file, some bad comments left in.
also on only try build RPM's on linux.

8 years agouse install target for CMake Windows (msvc and mingw), for MinGW you now need to...
Campbell Barton [Mon, 7 Mar 2011 03:33:33 +0000 (03:33 +0000)]
use install target for CMake Windows (msvc and mingw), for MinGW you now need to run 'make install', for MSVC the 'INSTALL' target needs to be enabled in the project file

8 years agoEnsure gpu_extensions.c compiles with MSVC -> include BLI_winstuff.h
Nathan Letwory [Mon, 7 Mar 2011 00:49:21 +0000 (00:49 +0000)]
Ensure gpu_extensions.c compiles with MSVC -> include BLI_winstuff.h

8 years agobug [#26329] Project Paint not working
Campbell Barton [Sun, 6 Mar 2011 23:12:12 +0000 (23:12 +0000)]
bug [#26329] Project Paint not working
we cant ensure that a requested buffer can be allocated so report opengl errors when failing to allocate the buffer (rather then printing to console).

this is common enough and generic error isn't too helpful to users.

8 years agofix [#26368] Solidify breaks EdgeCrease
Campbell Barton [Sun, 6 Mar 2011 22:10:33 +0000 (22:10 +0000)]
fix [#26368] Solidify breaks EdgeCrease

Make edge crease additive rather then overwriting existing values.
There are other problems pointed out in this report but they are unrelated to solidify.

8 years agoFix #26324: proportional editing and armature applied to editing cage during edit...
Sergey Sharybin [Sun, 6 Mar 2011 17:03:25 +0000 (17:03 +0000)]
Fix #26324: proportional editing and armature applied to editing cage during edit mode works strangely

Not sure why proportional editing used to disable crazyspace corrections,
but from that time hwn it was done transform stuff was changed a lot.
I've made several tests (with file from report and sintel from durian
data files) and it worked nice.

8 years agoApplied patch by Alexander Kuznetsov for bug 26373: math node 'round' mode was not...
Lukas Toenne [Sun, 6 Mar 2011 13:11:57 +0000 (13:11 +0000)]
Applied patch by Alexander Kuznetsov for bug 26373: math node 'round' mode was not working correctly for negative numbers.

8 years agoupdate 'make' GNUmakefile stub to run 'make install'
Campbell Barton [Sun, 6 Mar 2011 12:04:59 +0000 (12:04 +0000)]
update 'make' GNUmakefile stub to run 'make install'
update packman and debian for to disable portable install option.

8 years agoCMake: Linux/Unix Only,
Campbell Barton [Sun, 6 Mar 2011 11:41:30 +0000 (11:41 +0000)]
CMake: Linux/Unix Only,
use 'install' target rather then copying files with post-build commands.

Main change is that you need to run 'make install', which copies files to ./bin by default
unless WITH_INSTALL_PORTABLE is OFF, where CMAKE_INSTALL_PREFIX is used for a typical unix-system install.

8 years agouse tar.gz for windows python zipfiles rather then .zip,
Campbell Barton [Sun, 6 Mar 2011 11:18:57 +0000 (11:18 +0000)]
use tar.gz for windows python zipfiles rather then .zip,
since cmake can only extract tar's

8 years agoFinal step for texture nodes/threading issue fix: make needed
Sergey Sharybin [Sat, 5 Mar 2011 17:47:24 +0000 (17:47 +0000)]
Final step for texture nodes/threading issue fix: make needed
initialization on sculpt brush stroke init and free used resources
when stroke is finished.

8 years agoBugfix #26367
Ton Roosendaal [Sat, 5 Mar 2011 17:04:30 +0000 (17:04 +0000)]
Bugfix #26367

Previous fix I did to make texture-node-paint work, accidentally
cleared tags for compositing nodes to be done while editing.

8 years agoBugfix #26317
Ton Roosendaal [Sat, 5 Mar 2011 14:03:29 +0000 (14:03 +0000)]
Bugfix #26317

Dopesheet: shift+d duplicate is now a macro too, allowing a single undo.

8 years agopatch [#26366] More detailed Python error reporting for the BGE
Campbell Barton [Sat, 5 Mar 2011 11:08:22 +0000 (11:08 +0000)]
patch [#26366] More detailed Python error reporting for the BGE
from Alex Fraser (z0r)

    Now object name is shown with python error.

8 years agosculpt undo struct was using an array of char pointers rather then a char array.
Campbell Barton [Sat, 5 Mar 2011 10:37:59 +0000 (10:37 +0000)]
sculpt undo struct was using an array of char pointers rather then a char array.

8 years agouse NULL rather then 0 for pointer assignments & comparison, modifier, imbuf & editors.
Campbell Barton [Sat, 5 Mar 2011 10:29:10 +0000 (10:29 +0000)]
use NULL rather then 0 for pointer assignments & comparison, modifier, imbuf & editors.

8 years agoblenderplayer building again in CMake + OSX (and Linux I guess) patch from IRIE Shinsuke
Dalai Felinto [Sat, 5 Mar 2011 09:27:14 +0000 (09:27 +0000)]
blenderplayer building again in CMake + OSX (and Linux I guess) patch from IRIE Shinsuke

8 years agoworkaround for crash (not an actual fix) [#26316] Mirror and EdgeSplit - Grab Vertex...
Campbell Barton [Sat, 5 Mar 2011 07:17:19 +0000 (07:17 +0000)]
workaround for crash (not an actual fix) [#26316] Mirror and EdgeSplit - Grab Vertex do crash

8 years agofix [#26323] Crash when adding to a vertex group with a raw in
Campbell Barton [Sat, 5 Mar 2011 05:02:37 +0000 (05:02 +0000)]
fix [#26323] Crash when adding to a vertex group with a raw in

8 years agoUtility defines for quick timing tests.
Campbell Barton [Sat, 5 Mar 2011 04:35:36 +0000 (04:35 +0000)]
Utility defines for quick timing tests.
for most cases:
 TIMEIT_START(my_test)
 ....
 TIMEIT_END(my_test)

prints time, test name, function name and line number.

8 years ago2.5 Armature Panel UI Script:
Thomas Dinges [Fri, 4 Mar 2011 19:57:05 +0000 (19:57 +0000)]
2.5 Armature Panel UI Script:
* Code cleanup, no layout changes.

8 years agoBugfix #26270
Ton Roosendaal [Fri, 4 Mar 2011 18:39:58 +0000 (18:39 +0000)]
Bugfix #26270

Transform started with button in Toolbar was drawing the helper
line badly.

This needed two fixes:
- helper line now has poll() callback to check for correct region
- event system needs to set 'subwinactive' for modal handlers too

The latter might fix issues with cursor/overlay drawing in other
cases?

8 years agoquiet warnings and fix building without python.
Campbell Barton [Fri, 4 Mar 2011 17:01:33 +0000 (17:01 +0000)]
quiet warnings and fix building without python.

8 years agoBugfix #26317
Ton Roosendaal [Fri, 4 Mar 2011 16:02:42 +0000 (16:02 +0000)]
Bugfix #26317

Shift+D in graph editor was an operator calling internally an operator.
Better is to make it a Macro, then Undos and Esc work nicely.

Note for API users: the operator "graph.duplicate" will now just
copy the selection and not run transform. Nicer too :)

8 years agoForgot this one from previous commit.
Nathan Letwory [Fri, 4 Mar 2011 14:16:43 +0000 (14:16 +0000)]
Forgot this one from previous commit.

For now people should extract the python32(_d).zip in the lib/win*/release dirs into similarly named directories.

8 years agoMove CMake on Windows to use Python 3.2
Nathan Letwory [Fri, 4 Mar 2011 14:15:46 +0000 (14:15 +0000)]
Move CMake on Windows to use Python 3.2

8 years agoTwo additional fixes for node-tree + texture paint:
Ton Roosendaal [Fri, 4 Mar 2011 12:59:09 +0000 (12:59 +0000)]
Two additional fixes for node-tree + texture paint:

- "need exec" flag was cleared in wrong tree for preview renders
  (it should clear it in the copy, i did in original).
  This fixes projection paint on images with previews open
- Previews for nodes were copied always, now only for previews
  invoked by node editor itself.

8 years agoPy_hash_t is new typedef in Python 3.2, typedeffing Py_ssize_t. Changing to that...
Nathan Letwory [Fri, 4 Mar 2011 11:08:22 +0000 (11:08 +0000)]
Py_hash_t is new typedef in Python 3.2, typedeffing Py_ssize_t. Changing to that to keep "slow adaptors" happy ;)

8 years agolong hash caused stack corruption in _PySet_NextEntry. This wanted a Py_hash_t, so...
Nathan Letwory [Fri, 4 Mar 2011 10:37:49 +0000 (10:37 +0000)]
long hash caused stack corruption in _PySet_NextEntry. This wanted a Py_hash_t, so made hash into such.

8 years agochange mingw-scons to use python 3.2
Ervin Weber [Fri, 4 Mar 2011 10:19:02 +0000 (10:19 +0000)]
change mingw-scons to use python 3.2

8 years agoBump OSX SCons to use Python 3.2. Remember to update your lib/darwin* directory.
Nathan Letwory [Fri, 4 Mar 2011 09:08:47 +0000 (09:08 +0000)]
Bump OSX SCons to use Python 3.2. Remember to update your lib/darwin* directory.

8 years agoBugfix [#26312] Wrong text in a button in the Stretch to constraint
Joshua Leung [Fri, 4 Mar 2011 06:34:41 +0000 (06:34 +0000)]
Bugfix [#26312] Wrong text in a button in the Stretch to constraint

This looks like a simple Copy+Paste typo

8 years agoMove Windows SCons system to build Blender against the new Python 3.2 libs committed...
Nathan Letwory [Fri, 4 Mar 2011 00:59:45 +0000 (00:59 +0000)]
Move Windows SCons system to build Blender against the new Python 3.2 libs committed in r35340 and r35341.

Platform maintainers and release builders, please update your systems also to Python 3.2.

8 years agoFix for [#26254] Rendering problem with group-instances of particle-instances
Janne Karhu [Thu, 3 Mar 2011 19:07:27 +0000 (19:07 +0000)]
Fix for [#26254] Rendering problem with group-instances of particle-instances
* Render level derived mesh (needed for proper hair rendering) was only calculated before duplication code if the particle object was a level 0 duplicator, so particles creating objects inside a dupligroup didn't work.
* I really don't see the need for the level == 0 check, so I just removed it and after some quick tests can't see any negative effects. If the check is needed for some case though then a more complicated test is needed to handle all cases.

8 years agobugfix #26267
Ton Roosendaal [Thu, 3 Mar 2011 18:53:07 +0000 (18:53 +0000)]
bugfix #26267

ImageWindow + 3D view texture paint + texture preview render + texture nodes.
Threading hell! But it works now :)

8 years agouse NULL instead of 0 for pointers, (editors)
Campbell Barton [Thu, 3 Mar 2011 17:59:04 +0000 (17:59 +0000)]
use NULL instead of 0 for pointers, (editors)

8 years agoreplace 0 with NULL when used as a pointer
Campbell Barton [Thu, 3 Mar 2011 17:58:06 +0000 (17:58 +0000)]
replace 0 with NULL when used as a pointer

8 years agofix for invalid empty string check in uniquename callback.
Campbell Barton [Thu, 3 Mar 2011 17:23:59 +0000 (17:23 +0000)]
fix for invalid empty string check in uniquename callback.

8 years agopatch [#26235] debian/watch: Update for change of versioning
Campbell Barton [Thu, 3 Mar 2011 16:12:32 +0000 (16:12 +0000)]
patch [#26235] debian/watch: Update for change of versioning

8 years agoadded support for windows/mingw
Campbell Barton [Thu, 3 Mar 2011 15:38:29 +0000 (15:38 +0000)]
added support for windows/mingw

8 years agoBugfix #26307
Ton Roosendaal [Thu, 3 Mar 2011 15:18:35 +0000 (15:18 +0000)]
Bugfix #26307

Blender crashed on repeatedly pressing "reload image" or "unpack" and
other image options, with a material/texture preview running.

Solved with a signal to stop preview render before doing the action.

8 years agoFix #26273: mirror mod. + armature mod. + rotated armature == wrong reference axis...
Sergey Sharybin [Thu, 3 Mar 2011 15:17:57 +0000 (15:17 +0000)]
Fix #26273: mirror mod. + armature mod. + rotated armature == wrong reference axis for moving verts (when mirror comes first)

Do not overwrite coord of vertices in mapped vertex array used for crazyspace
corrections. This should make stuff use position of mesh vertex after
deformation, not possible generated images of this vertices.

8 years agofix crash from own recent changes [#26271] Crash when accessing bpy.data.node_groups
Campbell Barton [Thu, 3 Mar 2011 13:55:15 +0000 (13:55 +0000)]
fix crash from own recent changes [#26271] Crash when accessing bpy.data.node_groups

8 years agoFix #26261: blend from shape operator "add" option was not working correct.
Brecht Van Lommel [Thu, 3 Mar 2011 13:26:55 +0000 (13:26 +0000)]
Fix #26261: blend from shape operator "add" option was not working correct.

8 years agofix for own error [#26310] "Randomize Transform" operator has widgets jumbled
Campbell Barton [Thu, 3 Mar 2011 13:23:40 +0000 (13:23 +0000)]
fix for own error [#26310] "Randomize Transform" operator has widgets jumbled
the correct order was being overwritten.

8 years agoPy/RNA API: WITH_PYTHON_SAFETY
Campbell Barton [Thu, 3 Mar 2011 12:00:35 +0000 (12:00 +0000)]
Py/RNA API: WITH_PYTHON_SAFETY
compile time option which enables extra safety checks.
since this is noticeably slower I rather not enable by default yet.

8 years agofix error in qtcreator project file arg checking and check for cmake files.
Campbell Barton [Thu, 3 Mar 2011 11:22:54 +0000 (11:22 +0000)]
fix error in qtcreator project file arg checking and check for cmake files.

8 years agoPy/RNA api:
Campbell Barton [Thu, 3 Mar 2011 09:16:06 +0000 (09:16 +0000)]
Py/RNA api:
fix for crash when iterating over a collection which allocates the collection and frees on when finished.

The ability for BPy_StructRNA to hold a reference to other PyObject's was added to support this.

8 years agofix for own error made r35267.
Campbell Barton [Thu, 3 Mar 2011 08:01:11 +0000 (08:01 +0000)]
fix for own error made r35267.

8 years agoPy/RNA api - real collection iterator
Campbell Barton [Thu, 3 Mar 2011 07:41:09 +0000 (07:41 +0000)]
Py/RNA api - real collection iterator
Previously the api just converted the collection to a list and got the iterator from the list to return.

This has the advantage that it uses minimal memory on large collections where before it would make an array.

Though the main reason for this change is to support a bugfix for collections which free memory when they are done, this currently crashes the python api since once the list is built, the data is freed which is used by the list items in some cases (dynamic enums for eg).

8 years agofurther reading, need to untrack tracked PyObjects before clearing their trackable...
Campbell Barton [Thu, 3 Mar 2011 06:14:55 +0000 (06:14 +0000)]
further reading, need to untrack tracked PyObjects before clearing their trackable vars.

8 years agosupport for mathutils GC wasn't complete since PyObject_GC_Track is supposed to be...
Campbell Barton [Thu, 3 Mar 2011 06:01:31 +0000 (06:01 +0000)]
support for mathutils GC wasn't complete since PyObject_GC_Track is supposed to be called once the fields are filled in.