blender.git
9 years agoAdded CTest to run most operators in background mode under various conditions to...
Campbell Barton [Tue, 22 Mar 2011 14:09:07 +0000 (14:09 +0000)]
Added CTest to run most operators in background mode under various conditions to see if any crash.
used this to find quite a many errors already.

9 years ago- weight paint poll would crash if no area was found.
Campbell Barton [Tue, 22 Mar 2011 14:04:47 +0000 (14:04 +0000)]
- weight paint poll would crash if no area was found.
- don't print a line for each operator run when in background mode.
- extrude was using an invalid type for RNA access.

9 years agoBug fix: Fluidsim crashed after clicking "bake" multiple times
Janne Karhu [Tue, 22 Mar 2011 13:30:50 +0000 (13:30 +0000)]
Bug fix: Fluidsim crashed after clicking "bake" multiple times
* Fluid baking didn't check if there was already an ongoing job before starting a new job.

9 years agosome more corrections to incorrect rna get/set types.
Campbell Barton [Tue, 22 Mar 2011 13:30:20 +0000 (13:30 +0000)]
some more corrections to incorrect rna get/set types.

9 years agoBuildbot updates: working windows scons build, and run slave_*.py scripts
Brecht Van Lommel [Tue, 22 Mar 2011 13:05:05 +0000 (13:05 +0000)]
Buildbot updates: working windows scons build, and run slave_*.py scripts
to compile/test/package directly from svn, easier to make changes this way.

9 years agoadd BLI_assert() type checks for RNA property get/set functions, since there ended...
Campbell Barton [Tue, 22 Mar 2011 12:56:57 +0000 (12:56 +0000)]
add BLI_assert() type checks for RNA property get/set functions, since there ended up being quite a lot of these in blenders source.
These wont be compiled into release builds, and will only print errors by default (unless WITH_ASSERT_ABORT is enabled at compile time).

9 years agoVersion and platform name were in wrong order.
Nathan Letwory [Tue, 22 Mar 2011 12:54:13 +0000 (12:54 +0000)]
Version and platform name were in wrong order.

9 years agoproperties were being used with wrong type functions, this resulted in bad memory...
Campbell Barton [Tue, 22 Mar 2011 12:53:36 +0000 (12:53 +0000)]
properties were being used with wrong type functions, this resulted in bad memory access when getting int from an enum.

9 years agoFixing the particle emitter interpolation (#25385 & #26493) further
Janne Karhu [Tue, 22 Mar 2011 12:53:18 +0000 (12:53 +0000)]
Fixing the particle emitter interpolation (#25385 & #26493) further
* The interpolation should only be done if the dynamics were calculated, since otherwise animation keys can't be set after parenting.

9 years agoallow system info operator in background mode.
Campbell Barton [Tue, 22 Mar 2011 11:44:46 +0000 (11:44 +0000)]
allow system info operator in background mode.

9 years agoadd missing mem-free on vertex group sorting & dont crash when calling fullscreen...
Campbell Barton [Tue, 22 Mar 2011 11:19:02 +0000 (11:19 +0000)]
add missing mem-free on vertex group sorting & dont crash when calling fullscreen in bg mode.

9 years agoAdd buildslave target for builder.blender.org integration
Nathan Letwory [Tue, 22 Mar 2011 10:26:53 +0000 (10:26 +0000)]
Add buildslave target for builder.blender.org integration

9 years agocrash fix for Normalize All VGroups on a lattice without vgroups (probably other...
Campbell Barton [Tue, 22 Mar 2011 10:13:42 +0000 (10:13 +0000)]
crash fix for Normalize All VGroups on a lattice without vgroups (probably other tools too - bug was in ED_vgroup_give_parray).

Also fix for crashes running operators in bg mode by using setting poll functions: WM_OT_search_menu, MESH_OT_extrude_repeat, SCREEN_OT_new

9 years ago- support transform operators running in backgruond mode (was crashing)
Campbell Barton [Tue, 22 Mar 2011 09:14:27 +0000 (09:14 +0000)]
- support transform operators running in backgruond mode (was crashing)
- fix for crash getting the extrude mode enum value when a non-mesh edit object was active.

9 years agoPrinting error message would fail on exception.
Nathan Letwory [Tue, 22 Mar 2011 08:58:49 +0000 (08:58 +0000)]
Printing error message would fail on exception.

9 years agoBlenderplayer: Fixing import issues. Using PyImport_ExtendInittab() for the Blender...
Mitchell Stokes [Tue, 22 Mar 2011 08:35:56 +0000 (08:35 +0000)]
Blenderplayer: Fixing import issues. Using PyImport_ExtendInittab() for the Blender modules allows them to be imported in the Blenderplayer.

9 years agofix for crashes moving armature layers and applying loc/scale/rot in armature editmode.
Campbell Barton [Tue, 22 Mar 2011 08:30:07 +0000 (08:30 +0000)]
fix for crashes moving armature layers and applying loc/scale/rot in armature editmode.

9 years agopoll functions were for keymap operators were still raising errors in some cases.
Campbell Barton [Tue, 22 Mar 2011 08:21:16 +0000 (08:21 +0000)]
poll functions were for keymap operators were still raising errors in some cases.
remove unused script dirs.

9 years agofix [#25688] undocumted functions in pyapi
Campbell Barton [Tue, 22 Mar 2011 04:28:51 +0000 (04:28 +0000)]
fix [#25688] undocumted functions in pyapi
expose collection function docs.

9 years agoBGE Dynamic Loading:
Mitchell Stokes [Tue, 22 Mar 2011 02:39:08 +0000 (02:39 +0000)]
BGE Dynamic Loading:
 * Adding keyword arguments to LibLoad
   - load_actions (Default: False) Ensures that all actions are loaded. Otherwise, just actions used by objects in the scene are loaded.
   - verbose (Default: False) Turns on extra prints (eg SceneName: MyScene).
 * Also making error reporting better for when an invalid group/idcode is given.

9 years agooperators called from python were not getting their reports back into python errors.
Campbell Barton [Tue, 22 Mar 2011 02:38:39 +0000 (02:38 +0000)]
operators called from python were not getting their reports back into python errors.
eg:
- console calls operator
- operator calls report
- report went into header rather them back into the console as an error.

9 years agoMoving netrender to addons
Martin Poirier [Tue, 22 Mar 2011 01:40:22 +0000 (01:40 +0000)]
Moving netrender to addons

9 years agopy/api registration:
Campbell Barton [Tue, 22 Mar 2011 01:38:26 +0000 (01:38 +0000)]
py/api registration:
 move calls to the classes register/unregister function into register_class() / unregister_class() and add docs.

also other minor changes:
- remove face sorting keybinding, was Ctrl+Alt+F, this is quite and obscure feature and face order normally doesn't matter, so access from Face menu is enough.
- add commented out call to mesh.validate() in addon template since its useful to correct incomplete meshes during development.

9 years agofix [#26385] operator edit_properties return error
Campbell Barton [Mon, 21 Mar 2011 23:53:19 +0000 (23:53 +0000)]
fix [#26385] operator edit_properties return error

9 years agofix for grease pencil conversion to bezier curve reading past the end of the array.
Campbell Barton [Mon, 21 Mar 2011 23:30:56 +0000 (23:30 +0000)]
fix for grease pencil conversion to bezier curve reading past the end of the array.

9 years agouse spaces rather then tabs + minor pep8 edits.
Campbell Barton [Mon, 21 Mar 2011 22:37:08 +0000 (22:37 +0000)]
use spaces rather then tabs + minor pep8 edits.

9 years agofix for error printing class register error, remove an unneeded check.
Campbell Barton [Mon, 21 Mar 2011 22:17:01 +0000 (22:17 +0000)]
fix for error printing class register error, remove an unneeded check.

9 years agoquiet warning
Campbell Barton [Mon, 21 Mar 2011 22:10:24 +0000 (22:10 +0000)]
quiet warning

9 years agoBugfix #26549
Ton Roosendaal [Mon, 21 Mar 2011 17:10:55 +0000 (17:10 +0000)]
Bugfix #26549

Using environment map type "load" increased user counter on each
preview render.

Also noticed that this type of envmap use wasn't threadsafe, causing
imbufs being allocated for all threads. Also fixed that.

9 years agoBuildbot initial configuration files, for http://builder.blender.org
Brecht Van Lommel [Mon, 21 Mar 2011 16:46:26 +0000 (16:46 +0000)]
Buildbot initial configuration files, for builder.blender.org

Maintained in svn to make it easier for others to contribute changes,
actually updating builder.blender.org requires manual update on the
server.

9 years agoCMake package_archive target to create a .zip/.tar.bz2 package on mac/unix,
Brecht Van Lommel [Mon, 21 Mar 2011 16:42:21 +0000 (16:42 +0000)]
CMake package_archive target to create a .zip/.tar.bz2 package on mac/unix,
to be used by buildbot.

9 years agopedantic edit, no need to initialize var.
Campbell Barton [Mon, 21 Mar 2011 12:40:06 +0000 (12:40 +0000)]
pedantic edit, no need to initialize var.

9 years agomove script directories for internal blender scripts.
Campbell Barton [Mon, 21 Mar 2011 12:35:49 +0000 (12:35 +0000)]
move script directories for internal blender scripts.
ui/ --> startup/bl_ui
op/ --> startup/bl_operators

scripts/startup/ is now the only auto-loading script dir which gives some speedup for blender loading too.

~/.blender/2.56/scripts/startup works for auto-loading scripts too.

9 years agoChanged the particle physics "timetweak" value to a more descriptive "timestep" value...
Janne Karhu [Mon, 21 Mar 2011 10:53:29 +0000 (10:53 +0000)]
Changed the particle physics "timetweak" value to a more descriptive "timestep" value, which is in seconds.
* Done purely in rna, internally particles still use the timetweak value.

9 years agoCOLLADA: small tweaks to directional light import.
Nathan Letwory [Mon, 21 Mar 2011 09:50:30 +0000 (09:50 +0000)]
COLLADA: small tweaks to directional light import.

9 years agoFixing a typo: "Unknown erro reading file" -> "Unknown error reading file"
Mitchell Stokes [Mon, 21 Mar 2011 09:37:20 +0000 (09:37 +0000)]
Fixing a typo: "Unknown erro reading file" -> "Unknown error reading file"

9 years agoBGE Dynamic Loading: Fixing a particularly nasty leak that occurred if LibLoad()...
Mitchell Stokes [Mon, 21 Mar 2011 09:32:54 +0000 (09:32 +0000)]
BGE Dynamic Loading: Fixing a particularly nasty leak that occurred if LibLoad() errored.

9 years agoBGE Dynamic Loading: When given a relative path (starts with "//") for LibLoad()...
Mitchell Stokes [Mon, 21 Mar 2011 09:29:28 +0000 (09:29 +0000)]
BGE Dynamic Loading: When given a relative path (starts with "//") for LibLoad(), make the path absolute. This helps resolve relative paths inside the library.

9 years agoHalf way fix for [#25385] Particles Emitter only interpolates IPOs & [#26493] Particl...
Janne Karhu [Mon, 21 Mar 2011 08:47:04 +0000 (08:47 +0000)]
Half way fix for [#25385] Particles Emitter only interpolates IPOs & [#26493] Particle system animates incorrectly when emitting mesh is parented
* Particle emission now updates all parent objects too to the exact emission time.
* This only does object level animation as updating the object data for every particle would be too slow.
* A better fix could be to interpolate the emission location directly from the current particle emission location and the location from the previous frame, but for this some point cache changes have to be made, so it will have to wait.

9 years agopatch from Martin, call classes register/unregister functions.
Campbell Barton [Mon, 21 Mar 2011 06:22:09 +0000 (06:22 +0000)]
patch from Martin, call classes register/unregister functions.
Modified to only do one lookup.

from Martin:
 "Basically, what it does is allow you to add register and unregister class methods to rna types, this way you don't have to rely on module register/unregister methods to setup your types properly (and it makes them easier to move around when reorganizing code and easier to understand what a type does when reading code). This is especially nice for PropertyGroup classes that are added as properties to existing types, you can easily see in their register methods where they are added and removed in their unregister method. Obviously, those two methods are optional, so current code still works fine."

9 years agofix for use of un-initialized pointers in file_sfile_to_operator(...) & remove unused...
Campbell Barton [Mon, 21 Mar 2011 03:22:33 +0000 (03:22 +0000)]
fix for use of un-initialized pointers in file_sfile_to_operator(...) & remove unused vars.

9 years ago== file browser == Code cleanup
Andrea Weikert [Sun, 20 Mar 2011 15:15:05 +0000 (15:15 +0000)]
== file browser == Code cleanup
* Remove direct access to file->selflag in file_ops.c

9 years agoFix #26557: dots near alpha borders on textures. Tweak threshold in alpha
Brecht Van Lommel [Sun, 20 Mar 2011 15:03:13 +0000 (15:03 +0000)]
Fix #26557: dots near alpha borders on textures. Tweak threshold in alpha
de-premul for image textures to avoid float precision issues.

9 years agoFix/change in normal computation, now the viewport uses the same angle
Brecht Van Lommel [Sun, 20 Mar 2011 13:35:35 +0000 (13:35 +0000)]
Fix/change in normal computation, now the viewport uses the same angle
weighted normals as the render engine, and the render engine will copy
normals from the mesh rather than always recalculating them.

Subsurf/multires still use regular vertex normals, but they are expected
to be sufficiently high resolution to not need this.

This means that normal maps displayed in the viewport actually match the
render engine exactly and don't have artifacts due to this discrepancy.
It of course also avoids unexpected surprises where your render normals
look different than your viewport normals.

Subversion bumped to 4 for version patch to recalculate normals.

Patch by Morten Mikkelsen, with some small changes.

9 years agoAdded "Bake Sound to F-Curve" operator to the "Key" menu in the graph editor.
Joerg Mueller [Sun, 20 Mar 2011 12:19:21 +0000 (12:19 +0000)]
Added "Bake Sound to F-Curve" operator to the "Key" menu in the graph editor.

9 years ago== file browser == Code cleanup
Andrea Weikert [Sun, 20 Mar 2011 11:40:29 +0000 (11:40 +0000)]
== file browser == Code cleanup
* Remove deprecated variables from FileSelectParams

9 years ago== filebrowser == Code cleanup
Andrea Weikert [Sun, 20 Mar 2011 11:27:28 +0000 (11:27 +0000)]
== filebrowser == Code cleanup
* remove commented out code

9 years ago== filebrowser == Code cleanup
Andrea Weikert [Sun, 20 Mar 2011 11:16:59 +0000 (11:16 +0000)]
== filebrowser == Code cleanup

* Separate out selection flags from file type flags, was bothering me since forever ;)
* Also renamed ACTIVEFILE to SELECTED_FILE to better reflect actual usage in code.
* Fix crash introduced with last commit, better check for valid selection

9 years ago== file browser ==
Andrea Weikert [Sun, 20 Mar 2011 10:22:51 +0000 (10:22 +0000)]
== file browser ==
Patch from Alexander Kuznetsov: Toggle selection rather than just extending.

Implements behaviour that unintendedly was available with previously using macro operator for selection. This was removed and now the functionality is properly implemented.

Patch accepted with minor changes:
1. Used enum rather than #defines and added value for removing from selection (deselect)
2. Moved if (select) outside file_select_do and improved check for whether last file in selection is actually selected. (Necessary since toggle can deselect and toggle select should still make file active)
3. Additionally fixed check in file_select_invoke to be consistent with border select.

9 years agoprint how many times the operator failed.
Campbell Barton [Sun, 20 Mar 2011 09:38:25 +0000 (09:38 +0000)]
print how many times the operator failed.

9 years agofix for crash when running WM_OT_read_factory_settings() from a script and then impor...
Campbell Barton [Sun, 20 Mar 2011 07:23:17 +0000 (07:23 +0000)]
fix for crash when running WM_OT_read_factory_settings() from a script and then importing.

9 years agofix so the batch importer can run with addons passed as arguments.
Campbell Barton [Sun, 20 Mar 2011 06:02:47 +0000 (06:02 +0000)]
fix so the batch importer can run with addons passed as arguments.

9 years agofix for --addons startup argument, string length was too short.
Campbell Barton [Sun, 20 Mar 2011 04:44:03 +0000 (04:44 +0000)]
fix for --addons startup argument, string length was too short.

9 years agoCMake, check for clang++ compiler and disable WITH_IK_ITASC and WITH_MOD_FLUID until...
Campbell Barton [Sun, 20 Mar 2011 01:49:15 +0000 (01:49 +0000)]
CMake, check for clang++ compiler and disable WITH_IK_ITASC and WITH_MOD_FLUID until there supported.
possibly allows builing with Xcode4.

9 years ago== file browser ==
Andrea Weikert [Sun, 20 Mar 2011 00:34:08 +0000 (00:34 +0000)]
== file browser ==
Patch from Alexander Kuznetsov: Real-time File Selection, thanks for the contribution.

Still made a few minor changes from latest patch:
1. Rename SELECTEDFILE to HILITED_FILE, since we are not actually selecting the file, but previewing/highliting the possible selection.
2. Also made this clearer by not drawing the files as selected, but just highlight them.
3. Removed the Select/Deselect toggle when clicking on file, will be committed separately soon.

9 years agoFixing the other crash mentioned in bug #25083. m_current_scene isn't always pointing...
Mitchell Stokes [Sat, 19 Mar 2011 22:47:51 +0000 (22:47 +0000)]
Fixing the other crash mentioned in bug #25083. m_current_scene isn't always pointing to valid memory by the time LinkBlendFile is called. So, use the supplied scene_merge scene instead. Scene LibLoad was already doing this, so I just made Mesh and Action follow suit.

9 years agoFixing 1/2 crashes mentioned in bug #25083. This crash happens when LibLoad tries...
Mitchell Stokes [Sat, 19 Mar 2011 22:37:27 +0000 (22:37 +0000)]
Fixing 1/2 crashes mentioned in bug #25083. This crash happens when LibLoad tries to grab bad mesh data from a previous Load/Free via FindGameMesh(). FindGameMesh() makes use of m_map_mesh_to_gamemesh, so the mesh needs to be removed from this on free.

9 years agoTodo item:
Ton Roosendaal [Sat, 19 Mar 2011 18:23:21 +0000 (18:23 +0000)]
Todo item:

Improving UI visualization of using Material nodes:
- Property editor: the context top line now shows the linkage path
  (in material and texture view mode)
- Activating new material node refreshes preview in property editor
  when in texture mode.

This should make editing textures with node materials a bit more clear.

9 years agoCode comments only
Ton Roosendaal [Sat, 19 Mar 2011 16:30:52 +0000 (16:30 +0000)]
Code comments only

Tried to resolve todo item "Layer change in 3d view header doesn't update
dependencies on changed previously visible objects". Code is too much spread
around now though, and the 3d view header shares RNA code for changing layers.

I'll let this be a "glitch" for now.

9 years agough, left in a debug print in the previous commit
Janne Karhu [Sat, 19 Mar 2011 13:36:43 +0000 (13:36 +0000)]
ugh, left in a debug print in the previous commit

9 years agoBugfix #26547
Ton Roosendaal [Sat, 19 Mar 2011 13:36:36 +0000 (13:36 +0000)]
Bugfix #26547

Missing DAG_id_tag_update() on tool "Align Camera to View".

9 years agoFix for [#26546] Particles leak through deforming quad mesh
Janne Karhu [Sat, 19 Mar 2011 13:33:03 +0000 (13:33 +0000)]
Fix for [#26546] Particles leak through deforming quad mesh
* Slightly too strong optimization in the new collisions code, the "edges" in the middle of quads weren't checked at all.

9 years agoC, style changes (mostly white space edits), no functional change.
Campbell Barton [Sat, 19 Mar 2011 11:12:48 +0000 (11:12 +0000)]
C, style changes (mostly white space edits), no functional change.

9 years agoFix #26543: lamp sky settings were missing soft/linear light blend types,
Brecht Van Lommel [Sat, 19 Mar 2011 10:26:15 +0000 (10:26 +0000)]
Fix #26543: lamp sky settings were missing soft/linear light blend types,
made enum items shared with material ramp and mix node.

9 years agoremove some redundant vars, assignments & checks.
Campbell Barton [Sat, 19 Mar 2011 05:06:06 +0000 (05:06 +0000)]
remove some redundant vars, assignments & checks.

9 years ago2 tests for ctest.
Campbell Barton [Fri, 18 Mar 2011 23:58:13 +0000 (23:58 +0000)]
2 tests for ctest.

- script_load_addons: loads and onloads all addons, error if any cant be enabled or disabled.
- script_load_modules: loads all blenders modules, error if any modules raise an exception or if any modules in the scripts dir are not tested (except for presets and templates).

These are useful because lazy module loading means a module can have an error which isnt raised until the tools used. This gives a way to detect basic errors that used to happen on startup or when enabling the addon.

9 years agoSafety checks for macro defines
Joshua Leung [Fri, 18 Mar 2011 23:14:24 +0000 (23:14 +0000)]
Safety checks for macro defines

9 years agoFix [#25480] Unable to use Windows titlebar icons after Loopcut
Nathan Letwory [Fri, 18 Mar 2011 21:59:45 +0000 (21:59 +0000)]
Fix [#25480] Unable to use Windows titlebar icons after Loopcut
reported by Georg K
with patch [#26469] Windows mouse fix
by Alexander Kuznetsov

The amount of mouse grabs wasn't properly balanced with ungrabs, thus preventing from using proper mouse input outside client area.

9 years agohide addon_utils in bpy.utils & tag/remove unused vars in recent commits.
Campbell Barton [Fri, 18 Mar 2011 20:57:32 +0000 (20:57 +0000)]
hide addon_utils in bpy.utils & tag/remove unused vars in recent commits.

9 years agoFix for [#25878] UV Scale/Rotate/Grab break with non grid snapping.
Janne Karhu [Fri, 18 Mar 2011 16:35:42 +0000 (16:35 +0000)]
Fix for [#25878] UV Scale/Rotate/Grab break with non grid snapping.
* The selected uv-vertices (the ones being transformed) weren't being disregarded as snapping targets, so moving two verts that were in the same location together was impossible.

9 years agoBugfix #26462
Ton Roosendaal [Fri, 18 Mar 2011 16:09:29 +0000 (16:09 +0000)]
Bugfix #26462

Using "search menu" for browsing ID data (material, texture, brush)
wasn't sending an undo-push after use. This messed up undo or redo.

9 years agoNew particle collisions code:
Janne Karhu [Fri, 18 Mar 2011 15:31:32 +0000 (15:31 +0000)]
New particle collisions code:
* The old collisions code detected particle collisions by calculating the
  collision times analytically from the collision mesh faces. This was
  pretty accurate, but didn't support rotating/deforming faces at all, as
  the equations for these quickly become quite nasty.
* The new code uses a simple "distance to plane/edge/vert" function and
  iterates this with the Newton-Rhapson method to find the closest particle
  distance during a simulation step.
* The advantage in this is that the collision object can now move, rotate,
  scale or even deform freely and collisions are still detected reliably.
* For some extreme movements the calculation errors could stack up so much
  that the detection fails, but this can be easily fixed by increasing the
  particle size or simulation substeps.
* As a side note the algorithm doesn't really do point particles anymore,
  but uses a very small radius as the particle size when "size deflect" isn't
  selected.
* I've also updated the collision response code a bit, so now the particles
  shouldn't leak even from tight corners.

All in all the collisions code is now much cleaner and more robust than before!

9 years agoCOLLADA conformance: don't write empty libraries for effect, image and animation
Nathan Letwory [Fri, 18 Mar 2011 14:06:13 +0000 (14:06 +0000)]
COLLADA conformance: don't write empty libraries for effect, image and animation

9 years agoFix for crasher on Win XP, submitted by Kanttori.
Nathan Letwory [Fri, 18 Mar 2011 13:36:52 +0000 (13:36 +0000)]
Fix for crasher on Win XP, submitted by Kanttori.

size is 32 on XP, while sizeof(ri) gives 40. Pick the smaller one to pass to memcpy to prevent crashes.

9 years agofix for building on ubuntu 11.04 (pre-release), also remove WITH_INSTALL from cache.
Campbell Barton [Fri, 18 Mar 2011 12:12:53 +0000 (12:12 +0000)]
fix for building on ubuntu 11.04 (pre-release), also remove WITH_INSTALL from cache.

9 years agofix for [#26533] didnt take scene strips into account, tested copy/pasting scene...
Campbell Barton [Fri, 18 Mar 2011 10:35:17 +0000 (10:35 +0000)]
fix for [#26533] didnt take scene strips into account, tested copy/pasting scene strips now works with audio.

9 years agofixed [#26533] Audio strip mute after copy/paste
Campbell Barton [Fri, 18 Mar 2011 08:40:19 +0000 (08:40 +0000)]
fixed [#26533] Audio strip mute after copy/paste

9 years agofix [#26510] Crash when changing an object's property value
Campbell Barton [Fri, 18 Mar 2011 06:36:57 +0000 (06:36 +0000)]
fix [#26510] Crash when changing an object's property value

9 years agowhile looking into a problem in interface.c, noticed ui_get_but_val() is called frequ...
Campbell Barton [Fri, 18 Mar 2011 05:42:16 +0000 (05:42 +0000)]
while looking into a problem in interface.c, noticed ui_get_but_val() is called frequently when the return value isn't used (no functional change).

9 years agofix for using freed memory with modal grease pencil draw.
Campbell Barton [Fri, 18 Mar 2011 02:44:40 +0000 (02:44 +0000)]
fix for using freed memory with modal grease pencil draw.

9 years agofix for error in r35590, ARRAY_LAST_ITEM was returning one item over the end of the...
Campbell Barton [Fri, 18 Mar 2011 02:09:59 +0000 (02:09 +0000)]
fix for error in r35590, ARRAY_LAST_ITEM was returning one item over the end of the array.

9 years agofix [#26532] Does not save in specified format
Campbell Barton [Fri, 18 Mar 2011 00:12:51 +0000 (00:12 +0000)]
fix [#26532] Does not save in specified format

old bug from r6568 (or before) in BKE_write_ibuf(), when passed TAGA format it would use whatever format the image buffer already had.
expect this is exposed by updated image saving code in 2.5x.

9 years agoadd sphinx api reference note that menu's layout.operator_context defaults to EXEC_RE...
Campbell Barton [Thu, 17 Mar 2011 22:49:46 +0000 (22:49 +0000)]
add sphinx api reference note that menu's layout.operator_context defaults to EXEC_REGION_WIN rather then INVOKE_DEFAULT.

9 years agoCOLLADA: Don't write empty libraries for geometry, lights, cameras, controllers
Nathan Letwory [Thu, 17 Mar 2011 16:40:53 +0000 (16:40 +0000)]
COLLADA: Don't write empty libraries for geometry, lights, cameras, controllers

9 years agoBugfix #26483
Ton Roosendaal [Thu, 17 Mar 2011 14:52:01 +0000 (14:52 +0000)]
Bugfix #26483

Two small draw fixes to make the giant preview-image search-menu draw
correctly. (previews were drawing over a button)

9 years agobugfix [#26502] segmentationfault on pressing button to browse existing images for...
Campbell Barton [Thu, 17 Mar 2011 11:08:25 +0000 (11:08 +0000)]
bugfix [#26502] segmentationfault on pressing button to browse existing images for UV window
really old one!, since initial commit blender would crash scaling down large sizes eg: 60962 -> 128 (width or height).

the problem is scaledownx/y doesn't check buffer endpoints, with really large images theres a loop on a float value which can fail with large image sizes.

previous commit added asserts if the buffer runs over (assuming it doesnt crash),
This commit changes an epsilon value, tested this with random small images as well as images over 200,000 px, and it works fine, this is still flakey though and for really really big images it probably still fails.

9 years agoBLI_assert's for when scaledownx / scaledowny don't use the buffer correctly (theres...
Campbell Barton [Thu, 17 Mar 2011 10:37:48 +0000 (10:37 +0000)]
BLI_assert's for when scaledownx / scaledowny don't use the buffer correctly (theres a buffer overrun here [#26502]).

9 years agoSmall tooltip change to better indicate the purpose of the node name string and moved...
Lukas Toenne [Thu, 17 Mar 2011 10:31:20 +0000 (10:31 +0000)]
Small tooltip change to better indicate the purpose of the node name string and moved the node label button to the top, since this is usually what user will want to edit instead of the identifier name.

9 years agoAdded an optional label string to nodes. As pointed out by Sebastian Koenig, some...
Lukas Toenne [Thu, 17 Mar 2011 10:11:12 +0000 (10:11 +0000)]
Added an optional label string to nodes. As pointed out by Sebastian Koenig, some nodes (in particular render layer nodes) need custom labels, but it is not possible to make any useful generic abbreviation. The label string can be used as a custom user-defined label in this case, without the ugly .xxx extensions needed for unique node names. When the label string is empty, the default type label will be used.

9 years agoBugfix [#26505] zoom in selected keys on graph editor
Joshua Leung [Thu, 17 Mar 2011 10:02:37 +0000 (10:02 +0000)]
Bugfix [#26505] zoom in selected keys on graph editor

Not really a "bug", but it was on my todo anyways. Based on patch
[#26508] by Campbell, with a few modifications including extending
this to the Action/DopeSheet editor too.

9 years agomissed removing WITH_INSTALL reference.
Campbell Barton [Thu, 17 Mar 2011 09:09:48 +0000 (09:09 +0000)]
missed removing WITH_INSTALL reference.

9 years agoadd cancel() method for python defined operators.
Campbell Barton [Thu, 17 Mar 2011 07:02:02 +0000 (07:02 +0000)]
add cancel() method for python defined operators.

9 years agoerror with TIMEIT util define.
Campbell Barton [Thu, 17 Mar 2011 06:57:12 +0000 (06:57 +0000)]
error with TIMEIT util define.

9 years agochanged short's to int's image scale and flip functions (images can be bigger then...
Campbell Barton [Thu, 17 Mar 2011 05:15:54 +0000 (05:15 +0000)]
changed short's to int's image scale and flip functions (images can be bigger then short range)

9 years agofix for [#26524] Api autocomplete more errors
Campbell Barton [Thu, 17 Mar 2011 04:43:58 +0000 (04:43 +0000)]
fix for [#26524] Api autocomplete more errors
problem was caused by change in python behavior, now hasattr(val, attr) only suppresses attribute exceptions.

9 years agoBugfix: Grease Pencil paint didn't clean up properly after error-exits
Joshua Leung [Thu, 17 Mar 2011 02:53:56 +0000 (02:53 +0000)]
Bugfix: Grease Pencil paint didn't clean up properly after error-exits

This manisfested as an inability to draw any more strokes after trying
to draw a stroke while the active layer was locked and then unlocking
that layer to try and draw on it again.

9 years agofix own error - missing NULL check [#26523] Crash when load factory settings ( linked...
Campbell Barton [Wed, 16 Mar 2011 22:25:31 +0000 (22:25 +0000)]
fix own error - missing NULL check [#26523] Crash when load factory settings ( linked to rigify add-on ? )

9 years agofix own error [#26522] Api autocomplete return many errors
Campbell Barton [Wed, 16 Mar 2011 21:58:45 +0000 (21:58 +0000)]
fix own error [#26522] Api autocomplete return many errors
collections were getting __call__ attribute from the StructRNA, now ignore all starting with '_'

9 years agoremove cmake WITH_INSTALL option since its a target now.
Campbell Barton [Wed, 16 Mar 2011 21:32:20 +0000 (21:32 +0000)]
remove cmake WITH_INSTALL option since its a target now.

9 years agoBGE PhysicsConstraints.exportBulletFile improvement: also export the object names...
Erwin Coumans [Wed, 16 Mar 2011 21:20:24 +0000 (21:20 +0000)]
BGE PhysicsConstraints.exportBulletFile improvement: also export the object names to .bullet files.