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:

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

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
Campbell Barton [Thu, 3 Mar 2011 13:55:15 +0000 (13:55 +0000)]
fix crash from own recent changes [#26271] Crash when accessing

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.

Campbell Barton [Thu, 3 Mar 2011 12:00:35 +0000 (12:00 +0000)]
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.

8 years agoformatting edits. (no functional changes)
Campbell Barton [Thu, 3 Mar 2011 05:42:16 +0000 (05:42 +0000)]
formatting edits. (no functional changes)

8 years agosolidify material offsets for 2nd surface and rim faces.
Campbell Barton [Thu, 3 Mar 2011 05:09:07 +0000 (05:09 +0000)]
solidify material offsets for 2nd surface and rim faces.
run do_versions() on use_rim_material option so Sintel's jacket loads ok.
(request from Bassam)

8 years agominor correction for r35312, check the operator returns finished.
Campbell Barton [Thu, 3 Mar 2011 04:25:14 +0000 (04:25 +0000)]
minor correction for r35312, check the operator returns finished.
use lambda for (no functional change).

8 years agoBGE: Material Force Field renaming + reorganization
Dalai Felinto [Thu, 3 Mar 2011 01:47:17 +0000 (01:47 +0000)]
BGE: Material Force Field renaming + reorganization
the old FH setting was blended with the other physics settings (friction and elastic)
Also in the Physics panel it was saying "Use Material Physics" but the button is only for Force Field.

Since I was here I decided to change the Constraint FH ui name from Fh to Force. I don't think users really understand what FH is (I for once don't).
Thanks to Carsten Wartmann for pointing that out.

8 years agoShrinking the marker mouse-y tolerance again. It was a bit too high,
Joshua Leung [Wed, 2 Mar 2011 23:40:32 +0000 (23:40 +0000)]
Shrinking the marker mouse-y tolerance again. It was a bit too high,
making normal transforms get caught too often. I've got a few more
methods that I'll be trialling in the near future

8 years agoBugfix [#26269] Initiating a duplication with shift D and cancelling
Joshua Leung [Wed, 2 Mar 2011 23:39:08 +0000 (23:39 +0000)]
Bugfix [#26269] Initiating a duplication with shift D and cancelling
in dope sheet/ graph editor leads to duplicated keys

The old hack using the transform "undostring" didn't work anymore, as
this wasn't set. Instead, I've added a special mode transform mode for
this that the duplicate operators can set to get this functionality.

8 years agoLogic Editor: link a Sensor with an Actuator and automatically creates an And Control...
Dalai Felinto [Wed, 2 Mar 2011 22:32:13 +0000 (22:32 +0000)]
Logic Editor: link a Sensor with an Actuator and automatically creates an And Controller linked to them
Given the code perspective this is a hacky solution. However it's self-contained and documented one.
Ended having a talk with Ton and he agreed that this can acceptable in this case.
Zero chances of crashes (I've been using this myself for more than 6 months now).

Give it a shot. Although the code is +- for the user it's a really nice addition.
At the moment it makes more sense to put energy into the future Nodal Logic.
Yet, it's nice to give the current Logic Editor the love it deserves.

8 years agoLogic UI: reverting back the PROP_ANGLE props
Dalai Felinto [Wed, 2 Mar 2011 19:08:48 +0000 (19:08 +0000)]
Logic UI: reverting back the PROP_ANGLE props
The Logic Bricks that use angles (Radar Sensor and Constraint Actuator) do so in degree.
Reverting for the time being. Ideally we want to make them to use radians internally (that requires at least a doversion and a convert from radians to degree in BGE Converter routine).

If someone feels like helping on that, please go ahead.

8 years agotag unused var
Campbell Barton [Wed, 2 Mar 2011 19:06:09 +0000 (19:06 +0000)]
tag unused var

8 years agoChange RNA weakref code to use a ghash rather then a PyList, removing items from...
Campbell Barton [Wed, 2 Mar 2011 18:59:43 +0000 (18:59 +0000)]
Change RNA weakref code to use a ghash rather then a PyList, removing items from the list was far too slow.

8 years agoTsk! glGetFloatv() gives alpha too for GL_CURRENT_COLOR, so a four long vector is...
Janne Karhu [Wed, 2 Mar 2011 17:49:02 +0000 (17:49 +0000)]
Tsk! glGetFloatv() gives alpha too for GL_CURRENT_COLOR, so a four long vector is needed!

8 years agoFix for [#25326] FCurve rotate gives strange results.
Janne Karhu [Wed, 2 Mar 2011 17:32:01 +0000 (17:32 +0000)]
Fix for [#25326] FCurve rotate gives strange results.
* The fcurve points changed their order when rotating, but the transform data wasn't updated properly for this change so some curve handle pointers got lost.
* Also found a second bug while fixing this: The fcurve handle type pointers weren't updated at all when the order changed, so some auto handles could turn into aligned handles even if the transform was canceled (no undo possible in this case!).

8 years agosimplify rna internal weakref use.
Campbell Barton [Wed, 2 Mar 2011 16:56:13 +0000 (16:56 +0000)]
simplify rna internal weakref use.

8 years agoBugfix #26226
Ton Roosendaal [Wed, 2 Mar 2011 16:52:09 +0000 (16:52 +0000)]
Bugfix #26226

ImageWindow: hotkey "P" for Scopes was in conflict with Pinning.
Remapped it to "T" for time being, although it's not a toolbar...

8 years agoalign weakref list for rna (properties were using wrong pointer)
Campbell Barton [Wed, 2 Mar 2011 16:22:04 +0000 (16:22 +0000)]
align weakref list for rna (properties were using wrong pointer)

8 years agoRemoved tests for existing node pointers in RNA function for new links. Group node...
Lukas Toenne [Wed, 2 Mar 2011 14:13:05 +0000 (14:13 +0000)]
Removed tests for existing node pointers in RNA function for new links. Group node sockets don't have any specific node they belong to, so no node pointers are found.

8 years agoFrom the OFTL (old fart todo list)
Ton Roosendaal [Wed, 2 Mar 2011 14:09:54 +0000 (14:09 +0000)]
From the OFTL (old fart todo list)

Right Mouse on area edges has menu to Split or Join. Works like 2.4.

Code needed cleanup and upgrade; operators were hardcoded tied to using
the area corner widgets only. In theory this is getting py ready even,
but that might need some additional testing. :)

8 years agominor fixes to weakref validation before making bigger changes
Campbell Barton [Wed, 2 Mar 2011 06:56:21 +0000 (06:56 +0000)]
minor fixes to weakref validation before making bigger changes

8 years agofixed compile problem intruduced in r35295
M.G. Kishalmi [Wed, 2 Mar 2011 06:47:08 +0000 (06:47 +0000)]
fixed compile problem intruduced in r35295

one import was missing, another one used twice.

8 years agoSVN maintenance.
Guillermo S. Romero [Wed, 2 Mar 2011 05:06:43 +0000 (05:06 +0000)]
SVN maintenance.

8 years agoreplace references to old arithb library
Campbell Barton [Wed, 2 Mar 2011 05:05:12 +0000 (05:05 +0000)]
replace references to old arithb library

8 years agomove anim functions out of bpy_rna.c, its getting too big.
Campbell Barton [Wed, 2 Mar 2011 04:51:43 +0000 (04:51 +0000)]
move anim functions out of bpy_rna.c, its getting too big.

8 years agoupdate for changed exception type
Campbell Barton [Wed, 2 Mar 2011 04:16:57 +0000 (04:16 +0000)]
update for changed exception type

8 years agoLogic Editor: "Python Controller" NOT "Python Script Controller"
Dalai Felinto [Wed, 2 Mar 2011 01:42:14 +0000 (01:42 +0000)]
Logic Editor: "Python Controller" NOT "Python Script Controller"
The "Script" was added in the original rna commit but for no apparent reason the controller was renamed from the original 2.49 name.
Spotted/reverted in time.

8 years agoRemove superfluous ()
Nathan Letwory [Tue, 1 Mar 2011 21:55:51 +0000 (21:55 +0000)]
Remove superfluous ()

8 years agoFix #26218: texture paint
Sergey Sharybin [Tue, 1 Mar 2011 17:58:12 +0000 (17:58 +0000)]
Fix #26218: texture paint
- Added option "Fixed Texture" to the UI. Because of strange reason,
  this feature was implemented but hidden from users.
  Would be cool, if somebody familiar with 2d texture paiting check.
- Fixed some issues in existing code of fixed texture paiting.
  It now handles brush radius and curve correct.
- Also fixed issue with paiting with texture from node tree - it used
  to be painted with regular brush color instead of texture.

8 years agoUV layout export: EPS format
Campbell Barton [Tue, 1 Mar 2011 17:32:17 +0000 (17:32 +0000)]
UV layout export: EPS format
Pass an iterator function rather then the iterator its self, allows to loop over the faces twice without making a list.

8 years agofix [#26257] Colored UV-Map on export
Campbell Barton [Tue, 1 Mar 2011 17:22:27 +0000 (17:22 +0000)]
fix [#26257] Colored UV-Map on export
- EPS now exports material colors and face fill doesn't overwrite edges (draw in 2 passes).
- added opacity option for EPS/SVG/PNG

8 years agoBugfix #26243
Ton Roosendaal [Tue, 1 Mar 2011 17:00:01 +0000 (17:00 +0000)]
Bugfix #26243

Not sure if it fixes the bug, but an RNA boolean was read as int...
Related to default for "Blend from Shape" tool.

8 years agoBugfix #26249
Ton Roosendaal [Tue, 1 Mar 2011 16:26:37 +0000 (16:26 +0000)]
Bugfix #26249

Paint strokes now can be mapped to any key. The operators now store the
event it was started with, so it ends with a release. Even hotkeys work
(while hold).

8 years agoBugfix #26251
Ton Roosendaal [Tue, 1 Mar 2011 15:54:49 +0000 (15:54 +0000)]
Bugfix #26251

Logic editor: click in active text input buttons didnt work.

8 years agoFix [#25476] Pan view not always works with shift+alt+LMB in Blender 2.56
Nathan Letwory [Tue, 1 Mar 2011 15:14:59 +0000 (15:14 +0000)]
Fix [#25476] Pan view not always works with shift+alt+LMB in Blender 2.56
Reported by Mihail Konoh

Applied patch submitted by Alexander Kuznetsov (to [#26208]). Thanks for long-standing head-ache :)

8 years agoPy/RNA Stability: don't allow python to reference freed ID's and crash.
Campbell Barton [Tue, 1 Mar 2011 14:53:26 +0000 (14:53 +0000)]
Py/RNA Stability: don't allow python to reference freed ID's and crash.
Second method for not having python crash blender on invalid access (ifdef'd out ATM, so no functional change).

This uses a weakref list per ID, and invalidates all members of that list when the ID is freed.
the list is not stores in the ID pointer but using a hash table since storing python in DNA data is not acceptable.

This is more correct then the previous method but shows down execution of scripts significantly since its always adding and removing from lists when data is created and freed.

8 years agoTypo in last commit, changing variable name for more readable code...
Ton Roosendaal [Tue, 1 Mar 2011 13:56:33 +0000 (13:56 +0000)]
Typo in last commit, changing variable name for more readable code...

8 years agoFix [#26207] Render.exe mangles paths in mysterious and awesome ways
Nathan Letwory [Tue, 1 Mar 2011 12:52:00 +0000 (12:52 +0000)]
Fix [#26207] Render.exe mangles paths in mysterious and awesome ways
Reported by Edwin Amsler

The function for extrapolating the template name with the frame number didn't properly NULL-terminate the
resulting string, this causing broken names and weird paths (if you were lucky - totally unusuable names
detected while stepping through the code).

8 years agoBug fixes #26236 #26237
Ton Roosendaal [Tue, 1 Mar 2011 12:25:55 +0000 (12:25 +0000)]
Bug fixes #26236 #26237

- Linking logic buttons had draw glitch, caused by reading
  data from free'd buttons
- Doing an undo with mouse-over Curve Widget caused crash or

Both related to code that tries to keep the "active" button in
memory. On each redraw of UI, buttons are re-created, which makes
it all tricky... hope we're safer now.

Also: added back undo pushes on adding links in logic editor.

8 years agoSmall fix for node drawing: nodes with no sockets now have a minimum height to avoid...
Lukas Toenne [Tue, 1 Mar 2011 10:08:09 +0000 (10:08 +0000)]
Small fix for node drawing: nodes with no sockets now have a minimum height to avoid opengl drawing artifacts.

8 years agoPy/RNA API test code to prevent crashing blender when python references freed ID's.
Campbell Barton [Tue, 1 Mar 2011 09:02:54 +0000 (09:02 +0000)]
Py/RNA API test code to prevent crashing blender when python references freed ID's.

This uses pythons GC so its no overhead during runtime but makes removing ID's slower.

Commented definition 'USE_PYRNA_INVALIDATE_GC' for now, so no functional change.

8 years agofix [#26252] Py error when installing addon through UI
Campbell Barton [Tue, 1 Mar 2011 08:28:37 +0000 (08:28 +0000)]
fix [#26252] Py error when installing addon through UI
Py3.1 for windows doesn't have os.path.samefile(), has been added in 3.2.

8 years agoselect PoseBone attribute was made only available on bone.
Campbell Barton [Tue, 1 Mar 2011 07:52:13 +0000 (07:52 +0000)]
select PoseBone attribute was made only available on bone.

8 years agofix for error in recent cmake edits
Campbell Barton [Tue, 1 Mar 2011 07:21:52 +0000 (07:21 +0000)]
fix for error in recent cmake edits

8 years agobpy/rna support for invalidating objects.
Campbell Barton [Mon, 28 Feb 2011 22:56:29 +0000 (22:56 +0000)]
bpy/rna support for invalidating objects.
access will raise an error.

8 years agomissed these last commit.
Campbell Barton [Mon, 28 Feb 2011 21:06:09 +0000 (21:06 +0000)]
missed these last commit.

8 years agoBGE fix: complement to recent patch for Rigid Body Constraint. patch by Juha Mäki...
Dalai Felinto [Mon, 28 Feb 2011 20:22:28 +0000 (20:22 +0000)]
BGE fix: complement to recent patch for Rigid Body Constraint. patch by Juha Mäki-Kanto (kanttori)

8 years agogit users complain this breaks for them
Campbell Barton [Mon, 28 Feb 2011 19:48:56 +0000 (19:48 +0000)]
git users complain this breaks for them

8 years agochange return values from mathutils callbacks to match pythons (-1 is error), so...
Campbell Barton [Mon, 28 Feb 2011 18:42:41 +0000 (18:42 +0000)]
change return values from mathutils callbacks to match pythons (-1 is error), so error macro's can be used in both.

8 years agoBug fix: Render and 3d view conflict over ob->imat
Janne Karhu [Mon, 28 Feb 2011 15:42:15 +0000 (15:42 +0000)]
Bug fix: Render and 3d view conflict over ob->imat

* For rendering every object's inverse matrix "ob->imat" needs to
  be in render view coordinates, but for drawing in 3d view it needs
  to be in global coordinates. Originally (way back in historical
  times) ob->imat was only used for rendering, but over the years
  other uses came up too. Before 2.5 this wasn't a problem as
  rendering was a totally blocking operation, but with the new
  "interactive ui while rendering" the problems started. Basically
  any update that redrew the 3d view while rendering (like rotating
  the scene with mouse) updated the inverse matrix into global
  coordinates thus invalidating it for the render, leading to all
  kinds of strange discontinuities with textures and volumetrics.

* Problems were very easy to achieve using orco/object coordinates
  for pretty much any textures (bump, point density, volume, sky),
  for examples see bug reports 24906 and 25229. Render baking normals
  in object coordinates was wrong most of the time too.

* Now there is a separate inverse matrix ob->imat_ren that's
  calculated at the beginning of rendering and is used in all places
  inside render code where it's needed. This way the original ob->imat
  can change at will during rendering without causing problems.

8 years ago2.5 Netrender UI File:
Thomas Dinges [Mon, 28 Feb 2011 14:34:13 +0000 (14:34 +0000)]
2.5 Netrender UI File:
* Code cleanup.

8 years ago2.5 UI scripts:
Thomas Dinges [Mon, 28 Feb 2011 14:25:40 +0000 (14:25 +0000)]
2.5 UI scripts:
* Removed some unused code.

8 years agoFix [#26213] Collada exporter id's not unique
Nathan Letwory [Mon, 28 Feb 2011 14:24:52 +0000 (14:24 +0000)]
Fix [#26213] Collada exporter id's not unique
Reported by Kevin Yoon

<material> could get same id as <node>, prevent that by suffixing -material.