blender.git
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.

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 uv.py (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.