9 years agor34526 removed a line which had an unused return value but still needed to run.
Campbell Barton [Thu, 27 Jan 2011 12:36:48 +0000 (12:36 +0000)]
r34526 removed a line which had an unused return value but still needed to run.

9 years agoFixing some clang reported issues in particle code.
Janne Karhu [Thu, 27 Jan 2011 12:21:14 +0000 (12:21 +0000)]
Fixing some clang reported issues in particle code.
* Not really bugs, but some code cleanup and clarification.

9 years agofix for gcc 4.6 commit: this is needed for osx too.
Campbell Barton [Thu, 27 Jan 2011 11:17:23 +0000 (11:17 +0000)]
fix for gcc 4.6 commit: this is needed for osx too.

9 years agogcc 4.6 compatibility commit r34520 broke OSX, this should work now.
Campbell Barton [Thu, 27 Jan 2011 09:40:20 +0000 (09:40 +0000)]
gcc 4.6 compatibility  commit r34520 broke OSX, this should work now.

9 years agointernal changes, script writers won't notice.
Campbell Barton [Thu, 27 Jan 2011 06:48:14 +0000 (06:48 +0000)]
internal changes, script writers won't notice.
disable getattr metaclass forwarding attributes from the python class, eg: !=['foo']

... This was convenient but too tricky to properly maintain with attribute assignment and attributes defined within the class.
avoid doubles in dir() by converting to a set and then back to a list.

9 years agoBugfix [#25823] When objects are parented to the same objects that
Joshua Leung [Thu, 27 Jan 2011 01:29:40 +0000 (01:29 +0000)]
Bugfix [#25823] When objects are parented to the same objects that
they have some rotation-affecting constraint (i.e. Track To and Copy
Rotation) targetting, transforming the objects (directly, using GKEY
-> grab) becomes unreliable.

This was caused by a typo in some code checking for some
OB_NO_CONSTRAINTS under "flag" instead of "transflag"

9 years ago[#25815] Patch gcc 4.6
Campbell Barton [Thu, 27 Jan 2011 00:02:25 +0000 (00:02 +0000)]
[#25815] Patch gcc 4.6
with minor edits, made sure it works in CMake too.

9 years agoSilencing some annoying key-event prints in Win32 console:
Joshua Leung [Wed, 26 Jan 2011 23:58:20 +0000 (23:58 +0000)]
Silencing some annoying key-event prints in Win32 console:

The console was getting flooded with output like


all as a result of what looks like a debugging print. Whoever put this
in, you can get back your debugging prints by enabling BF_GHOST_DEBUG
in your local config :)

9 years agoBugfix [#25707] / Todo Item: "Local Space" for Object constraining
Joshua Leung [Wed, 26 Jan 2011 23:33:08 +0000 (23:33 +0000)]
Bugfix [#25707] / Todo Item: "Local Space" for Object constraining

For Constraints, there's now a working "Local" Space for Objects
without parents. This is defined as relative to the object's rotated
set of axes which results from rotation that gets set via "rotation"
transform properties.

I'm not sure whether this different behaviour between parented and
unparented objects will be too confusing (and thus require separate
settings + a round of version patching), so I'll wait until we get
proper testing from experienced riggers first.

9 years agoUsability issue noted while self-testing some stuff...
Joshua Leung [Wed, 26 Jan 2011 22:38:05 +0000 (22:38 +0000)]
Usability issue noted while self-testing some stuff...

Giving modifiers more descriptive tooltips for "Vertex Group" fields
than just the useless/meaningless "Vertex Group name" tooltip they
used to have.

9 years agoBullet-proofing mesh vertex group RNA wrapping, after double checking
Joshua Leung [Wed, 26 Jan 2011 22:31:14 +0000 (22:31 +0000)]
Bullet-proofing mesh vertex group RNA wrapping, after double checking
on whether vertexgroup weight animation worked

9 years agobge fix: debug text didn't have GL_DEPTH disabled - text got clipped when we have...
Dalai Felinto [Wed, 26 Jan 2011 22:16:58 +0000 (22:16 +0000)]
bge fix: debug text didn't have GL_DEPTH disabled - text got clipped when we have objects too close to the camera
fix only in embed bge, blenderplayer seems to be doing differently.
-- reported live by Mike Pan

9 years agoRemoving some old stuff from old animation system that isn't needed
Joshua Leung [Wed, 26 Jan 2011 22:01:51 +0000 (22:01 +0000)]
Removing some old stuff from old animation system that isn't needed
anymore (shapekeys stuff)

9 years ago"Bugfix" (otherwise known as another ZanQdo Feature Request)
Joshua Leung [Wed, 26 Jan 2011 21:58:32 +0000 (21:58 +0000)]
"Bugfix" (otherwise known as another ZanQdo Feature Request)

Shape Key point data can now be animated directly. That is, you can
animate the locations that each shape key defines.

9 years agoFix #25818: Text Editor holizontal grab inverted
Sergey Sharybin [Wed, 26 Jan 2011 21:00:52 +0000 (21:00 +0000)]
Fix #25818: Text Editor holizontal grab inverted

Stupid typo. Maybe it's a result of merging two patches related to this part of code.

9 years agoBug [#25696] Netrender feedback fails
Martin Poirier [Wed, 26 Jan 2011 20:09:30 +0000 (20:09 +0000)]
Bug [#25696] Netrender feedback fails

Patch by Wintch Analyzer

Someone change an attribute name and this wasn't updated

9 years agooption for blender --addons rigify,io_scene_fbx,add_mesh_gears
Campbell Barton [Wed, 26 Jan 2011 16:30:12 +0000 (16:30 +0000)]
option for blender --addons rigify,io_scene_fbx,add_mesh_gears
needed so ctest unit testing can be done on addons that are not enabled by default.

9 years agofix from andguent on irc, wasn't checking for property type.
Campbell Barton [Wed, 26 Jan 2011 16:21:54 +0000 (16:21 +0000)]
fix from andguent on irc, wasn't checking for property type.

9 years agofix for error in add mesh script with no operator passed.
Campbell Barton [Wed, 26 Jan 2011 14:52:00 +0000 (14:52 +0000)]
fix for error in add mesh script with no operator passed.

9 years agoPossible fix for issue #2 in [#25664] Remove Pack does not work in Texture panel
Campbell Barton [Wed, 26 Jan 2011 14:18:16 +0000 (14:18 +0000)]
Possible fix for issue #2 in [#25664] Remove Pack does not work in Texture panel
- There were 2 pack menu's, merged into 1.
- Don't attempt to unpack into // if the blend file isn't saved, would use the CWD instead.

9 years agoFix for [#25797] Hair partcle crash when vertexgroup length enabled
Janne Karhu [Wed, 26 Jan 2011 13:02:47 +0000 (13:02 +0000)]
Fix for [#25797] Hair partcle crash when vertexgroup length enabled
* Rounding errors could give vgroup weights of slightly over 1.0 to particles in some cases.

9 years agoAfter test, offset is better to be 0.001f (test in windows nvidia)
Ton Roosendaal [Wed, 26 Jan 2011 12:48:22 +0000 (12:48 +0000)]
After test, offset is better to be 0.001f (test in windows nvidia)

9 years agofix for crash when assigning unsupported type to collection properties.
Campbell Barton [Wed, 26 Jan 2011 12:44:09 +0000 (12:44 +0000)]
fix for crash when assigning unsupported type to collection properties.

9 years agoBugfix #25756
Ton Roosendaal [Wed, 26 Jan 2011 12:26:44 +0000 (12:26 +0000)]
Bugfix #25756

Outliner was drawing icons sometimes blurred. Happens when subpixel
positions vary. UI code doesn't suffer this, it makes own ortho for

This fix re-uses an un-used v2d flag (V2D_PIXELOFS_X) to force a 2d
view on pixel exact positions. It's set for outliner only, I need
testing feedback first.

9 years agoApply part of patch [#25612] Windows 7 icon progress bar
Nathan Letwory [Wed, 26 Jan 2011 12:23:02 +0000 (12:23 +0000)]
Apply part of patch [#25612] Windows 7 icon progress bar
Submitted by Alexander Kuznetsov.

This adds the progress bar to the taskbar item of Blender for Windows 7.
Small change in version retrieval, otherwise as is.

9 years agoApply multimonitor fix part of patch [#25612]
Nathan Letwory [Wed, 26 Jan 2011 12:19:19 +0000 (12:19 +0000)]
Apply multimonitor fix part of patch [#25612]
Submitted by Alexander Kuznetsov
Fixes [#23630] Negative OS screen coords not stored/used
Reported by Mort (mnme)

9 years agoShapeKeys RNA Wrapping: Code cleanup
Joshua Leung [Wed, 26 Jan 2011 10:46:43 +0000 (10:46 +0000)]
ShapeKeys RNA Wrapping: Code cleanup

Replaced some manual/inlined operations with their equivalents from
the listbase library funcs.

9 years ago- Clear rotation for objects now works on delta transforms too. The
Joshua Leung [Wed, 26 Jan 2011 10:25:15 +0000 (10:25 +0000)]
- Clear rotation for objects now works on delta transforms too. The
only case that doesn't fully work yet is the one where quats/axis-
angle are converted to eulers first.
- Fixed incorrect comment
- Removed obsolete "armature_clear" var from clear origin operator.
This was some ancient stuff from 2.4x code that ended up getting
ported across...

9 years agoRefactoring object clear-transform operators to remove out the common
Joshua Leung [Wed, 26 Jan 2011 09:27:43 +0000 (09:27 +0000)]
Refactoring object clear-transform operators to remove out the common
parts, like what was done for posechannel clear-transform operators
earlier. There shouldn't be any functional changes.

9 years agoupdate to background_job template to use --factory-startup option.
Campbell Barton [Wed, 26 Jan 2011 07:54:27 +0000 (07:54 +0000)]
update to background_job template to use --factory-startup option.
make all templates pep8 compliant.

9 years agocmake attempted fix before didnt work (I cant test on OSX), this should fix.
Campbell Barton [Wed, 26 Jan 2011 07:34:17 +0000 (07:34 +0000)]
cmake attempted fix before didnt work (I cant test on OSX), this should fix.

9 years agoAdding Calculate/Clear Motion Path operator buttons to toolbar. I'm
Joshua Leung [Wed, 26 Jan 2011 06:41:44 +0000 (06:41 +0000)]
Adding Calculate/Clear Motion Path operator buttons to toolbar. I'm
currently reviewing the UI for this, so more changes related to this
should be coming...

9 years agoAfter talking to Troy Sobotka, separated the time mapping UI a bit and added a label...
Daniel Salazar [Wed, 26 Jan 2011 06:08:26 +0000 (06:08 +0000)]
After talking to Troy Sobotka, separated the time mapping UI a bit and added a label. It should be less obscure now

9 years agomissed this when updating cmake files
Campbell Barton [Wed, 26 Jan 2011 04:48:37 +0000 (04:48 +0000)]
missed this when updating cmake files

9 years agoAdding Framerate preset patch by Troy Sobotka (sobotka). Small change to
Daniel Salazar [Tue, 25 Jan 2011 18:30:31 +0000 (18:30 +0000)]
Adding Framerate preset patch by Troy Sobotka (sobotka). Small change to
make Frame Old / Frame New remapping settings always visible as they
aren't really a part of framerate settings

9 years agoFix for [#25781] Bake cache for particles fails at end , ALT + A not
Janne Karhu [Tue, 25 Jan 2011 17:08:43 +0000 (17:08 +0000)]
Fix for [#25781] Bake cache for particles fails at end , ALT + A not
* Missing check for info frame (frame 0).

9 years agosmall internal cleanup, have matrix.scale_part() use same method to extract the scale...
Campbell Barton [Tue, 25 Jan 2011 16:32:41 +0000 (16:32 +0000)]
small internal cleanup, have matrix.scale_part() use same method to extract the scale as matrix.decompose()

9 years agouse cmake defined names for jpeg, png, zlib and python libs, building on *nix with...
Campbell Barton [Tue, 25 Jan 2011 14:43:13 +0000 (14:43 +0000)]
use cmake defined names for jpeg, png, zlib and python libs, building on *nix with non-standard libjpeg/png/zlib locations was broken.
in the case of python this makes it easier to move to find_package(PythonLibs) when 3.x is supported.

9 years agocmake maintenance, was missing 2 headers and made some minor improvements to cmake_co...
Campbell Barton [Tue, 25 Jan 2011 08:35:10 +0000 (08:35 +0000)]
cmake maintenance, was missing 2 headers and made some minor improvements to
also converted GHOST_SystemWin32.cpp to utf8.

9 years agoimprove unregister error check not to loop over parent classes properties (would...
Campbell Barton [Tue, 25 Jan 2011 07:31:11 +0000 (07:31 +0000)]
improve unregister error check not to loop over parent classes properties (would check the same property multiple times)

9 years agofix [#25748] Addons register parameters/functions more than once
Campbell Barton [Tue, 25 Jan 2011 06:54:57 +0000 (06:54 +0000)]
fix [#25748] Addons register parameters/functions more than once
- values were added to both the classes __dict__ as well as the internal StructRNA.
- made properties available from the type since this is where the python api assigns them:
>>> bpy.types.Scene.frame_start
<bpy_struct, IntProperty("frame_start")>
- rename RNA_struct_type_properties() -> RNA_struct_type_properties(), added RNA_struct_type_find_property()

9 years agoproperty lookups on structs was doing a listbase search even if the hash was defined.
Campbell Barton [Tue, 25 Jan 2011 05:45:21 +0000 (05:45 +0000)]
property lookups on structs was doing a listbase search even if the hash was defined.
since the property hash is maintained there is no reason for this, especially since the property could be in the StructRNA's parent class.

9 years agofix [#25778] Memoryblock Data from SCR: end corrupt
Campbell Barton [Tue, 25 Jan 2011 01:51:28 +0000 (01:51 +0000)]
fix [#25778] Memoryblock Data from SCR: end corrupt
 + other minor changes.

9 years agoTodo item: text editor does not honour continuous grab(see
Sergey Sharybin [Mon, 24 Jan 2011 18:21:55 +0000 (18:21 +0000)]
Todo item: text editor does not honour continuous grab(see

Added OPTYPE_GRAB_POINTER flag to scrolling operator, changed a bit logic of
delta calculation and removed unused members from TextScroll structure.

Got issue with very-fast mouse moving (when mouse pointer could go out of window,
but it's general issue for all grab operator).

Was unable to check MOUSEPAN event (two-finger scroll). Please poke me if
there are any issues with this event.

9 years agofix [#25757] Torus script uses radians for rotation in panel
Campbell Barton [Mon, 24 Jan 2011 15:25:03 +0000 (15:25 +0000)]
fix [#25757] Torus script uses radians for rotation in panel

9 years agoFix [#25715] [!] key doesn't work on french keyboard with Windows XP/7.\nSubmitted...
Nathan Letwory [Mon, 24 Jan 2011 14:37:10 +0000 (14:37 +0000)]
Fix [#25715] [!] key doesn't work on french keyboard with Windows XP/7.\nSubmitted by Eric Le Pape\n\nThe key sent VK_OEM_8, which wasn't handled at all. Added code to detect primary language and handle VK_OEM_8 specifically for certain layouts.

9 years agoTodo item: text editor scroll bar does not respond to clicks
Sergey Sharybin [Mon, 24 Jan 2011 10:10:50 +0000 (10:10 +0000)]
Todo item: text editor scroll bar does not respond to clicks

Text space's scroll bar now uses quite the same strategy of handling
drag and click events as view2d.

I tried to share some code between this two spaces. but there was no big
luck with it: text sace uses it's own constants (like scroll bas size and offsets),
so the simpliest way was to define zone stuff for text space without sharing it
with view2d.

9 years agofix [#25776] Crash when operator's bl_idname has more than one dot
Campbell Barton [Mon, 24 Jan 2011 05:15:14 +0000 (05:15 +0000)]
fix [#25776] Crash when operator's bl_idname has more than one dot

9 years agoRaise an exception when registering classes with ID names which are too long. (relate...
Campbell Barton [Mon, 24 Jan 2011 03:38:34 +0000 (03:38 +0000)]
Raise an exception when registering classes with ID names which are too long. (related to bug ), found while looking into bug [#25776].

9 years agono functional changes.
Campbell Barton [Mon, 24 Jan 2011 02:56:23 +0000 (02:56 +0000)]
no functional changes.
- remove unneeded casts to (char*) in interface code.
- replace strcmp(.., "") with checks on the first char of the string.

9 years agoSmall fix for text input buttons:
Ton Roosendaal [Sun, 23 Jan 2011 19:20:10 +0000 (19:20 +0000)]
Small fix for text input buttons:

Number buttons, in text input mode, now also align internally
like text buttons.

9 years agoBGE: option in the UI to start with the mouse cursor visible. Patch by Vitor Balbio...
Dalai Felinto [Sun, 23 Jan 2011 17:25:27 +0000 (17:25 +0000)]
BGE: option in the UI to start with the mouse cursor visible. Patch by Vitor Balbio, changes by me.
While we are more and more moving towards enabling features in the Python API, it's also important to have Logic Bricks working with no scripts.

This option allows you to start the game with the mouse cursor on (it's on Render Buttons). The defalt is still off (no do_version needed here).

9 years agoBGE: support modifiers without mapping to original mesh both graphically and physical...
Benoit Bolsee [Sun, 23 Jan 2011 17:17:21 +0000 (17:17 +0000)]
BGE: support modifiers without mapping to original mesh both graphically and physically, fixes bug #24942 and #25286.

Support for physics is done by skiping the modifiers that
don't support mapping to original mesh. This mapping is
required to report the hit polygon to the application
by the rayCast() function.

Support for graphics is done by using the same render
function that blender uses for the 3D view. This guantees
equal result.

Limitation: there is still a known bug if all these conditions are met:
- Display list enabled
- Old tex face with a several textures mapped to the same material
- no armature or shape keys
- active modifiers

In this case, only a part of the mesh will be rendered
with the wrong texture. To avoid this bug, use the GLSL
materials or make sure to have 1 material=1 texture in
your old tex face objects.

9 years agoSome ui reorganization of the physics tab:
Janne Karhu [Sun, 23 Jan 2011 14:04:31 +0000 (14:04 +0000)]
Some ui reorganization of the physics tab:
* Before the different simulations all had a panel with an "add this" button making the whole tab look really messy. It also rarely makes sense to have more than one or two physics things enabled for a single object, so having all the panels in the tab just added a great deal of visual clutter.
* Now there is a single "enable physics for" panel at the top that allows for enable/disable of any simulation. All actual physics panels are hidden until a simulation is enabled.
* There was no "add" button for force fields before, but I added a toggle between "none" and "force" to unify the ui even further.

9 years agoPanels that have the "no header" flag set are now always drawn first in a tab regardl...
Janne Karhu [Sun, 23 Jan 2011 13:52:24 +0000 (13:52 +0000)]
Panels that have the "no header" flag set are now always drawn first in a tab regardless of the order they were registered.
* This is a quick and simple workaround until we can define proper ordering for the panels.

9 years agoupdate testing md5's for changes in exporters.
Campbell Barton [Sun, 23 Jan 2011 13:34:36 +0000 (13:34 +0000)]
update testing md5's for changes in exporters.

9 years agocorrect own bad spelling
Campbell Barton [Sun, 23 Jan 2011 12:42:07 +0000 (12:42 +0000)]
correct own bad spelling

9 years ago- fix problem with cmake, windows 'RelWithDebInfo' target, was giving error: "ImportE...
Campbell Barton [Sun, 23 Jan 2011 11:42:29 +0000 (11:42 +0000)]
- fix problem with cmake, windows 'RelWithDebInfo' target, was giving error: "ImportError: No module named _socket" because of copying wrong files over.
- move test -> tests, this name is used elsewhere in lib/tests.
- change interface code not to loop on a float value (clang warning), harmless, but with extreme cases an eternal loop would still be possible though unlikely.

9 years agobugfix + minor mathutils.Vector edits.
Campbell Barton [Sun, 23 Jan 2011 08:37:34 +0000 (08:37 +0000)]
bugfix + minor mathutils.Vector edits.
- multiplying a 2D vector by a 3x3 or 4x4 matrix would use un-initialized memory, now throw an exception.
- use more variable length array BLI_math functions.

9 years agoLogic UI: ParentActuator fix + PropertyActuator tooltip improvement
Dalai Felinto [Sun, 23 Jan 2011 04:54:23 +0000 (04:54 +0000)]
Logic UI: ParentActuator fix + PropertyActuator tooltip improvement
ParentActuator: sub options only available when mode==setParent + deactive ghost option when compound is true (isntead of saying that in the tooltip)
PropertyActuator: I never knew that you could pass a property name to the Add and Assign options of the Property Actuator. Where it's by design or a side effect is cool. And a tooltip explaining that does help.

9 years agoOwn mistake in fluid particles ui cleanup commit.
Janne Karhu [Sat, 22 Jan 2011 21:22:29 +0000 (21:22 +0000)]
Own mistake in fluid particles ui cleanup commit.
* Emission tab was shown without particle settings.

9 years agoBug fix: pre 2.5 particles that were using old memory caching didn't load properly
Janne Karhu [Sat, 22 Jan 2011 21:13:29 +0000 (21:13 +0000)]
Bug fix: pre 2.5 particles that were using old memory caching didn't load properly
* Now the old cache is just freed so that new calculations can be done.
* The particle dynamics regression test files should display correctly now.

9 years ago"Fix" for [#25766] Fluid Particle Bugs
Janne Karhu [Sat, 22 Jan 2011 20:38:27 +0000 (20:38 +0000)]
"Fix" for [#25766] Fluid Particle Bugs
* Argh, particles tab was showing the whole "non applicable settings for fluid particles"-galore as the particle type "fluid" can't be checked from rna using the settings type value. Now the ui is a lot cleaner and only settings that actually effect the fluid particles are shown.

9 years agoSmall fix from the todo:
Ton Roosendaal [Sat, 22 Jan 2011 18:00:11 +0000 (18:00 +0000)]
Small fix from the todo:

"Modal cursors" now remain visible, until reset. These cursors
were reset already on edges. Example: 3d view toolbar, grease
pencil. Do note, only use WM_cursor_modal() on real modal tools,
and restore it at end.

9 years agoBugfix #25761
Ton Roosendaal [Sat, 22 Jan 2011 15:34:20 +0000 (15:34 +0000)]
Bugfix #25761

Move-to-layer in 3D window didn't work for linked library objects.
That should be possible, as was in 2.49. Layer property is local.

9 years agoFix for [#25664] Remove Pack does not work in Texture panel
Janne Karhu [Sat, 22 Jan 2011 14:44:04 +0000 (14:44 +0000)]
Fix for [#25664] Remove Pack does not work in Texture panel
* Unpack menu option "Remove Pack" didn't get a pointer to the image to be unpacked. This worked from image view by using the active image, but not from texture panel.

9 years agoTemporary fix for [#25735] Softbody don't work in linked groups, not generate cache
Janne Karhu [Sat, 22 Jan 2011 14:13:36 +0000 (14:13 +0000)]
Temporary fix for [#25735] Softbody don't work in linked groups, not generate cache
* The whole case of lib linking and pointcaches is not very well defined currently, but this fix sets the behavior of sb to the same as other physics currently.
* A proper fix will be easy to implement after a good physics baking ui is added.

9 years agoown fix r34446, was incorrect, fixed properly now.
Campbell Barton [Sat, 22 Jan 2011 04:40:15 +0000 (04:40 +0000)]
own fix r34446, was incorrect, fixed properly now.

9 years agoerror in own recent commit, r34445
Campbell Barton [Sat, 22 Jan 2011 04:13:13 +0000 (04:13 +0000)]
error in own recent commit, r34445

9 years agofix for makesdna error.
Campbell Barton [Sat, 22 Jan 2011 04:02:54 +0000 (04:02 +0000)]
fix for makesdna error.

ERROR: still 1 structs unknown
*** Unknown structs :

9 years agocomment dead code and fix 2 missing NULL checks (pointer used after NULL check and...
Campbell Barton [Sat, 22 Jan 2011 03:50:09 +0000 (03:50 +0000)]
comment dead code and fix 2 missing NULL checks (pointer used after NULL check and checking against incorrect pointer before use).

9 years agocorrection to own cmake error checking script.
Campbell Barton [Fri, 21 Jan 2011 11:52:56 +0000 (11:52 +0000)]
correction to own cmake error checking script.

9 years agoPLY and STL importer tests.
Campbell Barton [Fri, 21 Jan 2011 10:49:39 +0000 (10:49 +0000)]
PLY and STL importer tests.

9 years agoLogic UI + missing listener in Outliner - changes on Armature Sensor and Visibility...
Dalai Felinto [Fri, 21 Jan 2011 08:59:08 +0000 (08:59 +0000)]
Logic UI + missing listener in Outliner - changes on Armature Sensor and Visibility Actuator
* fix for armature sensor (Status Changed doesn't use any value to evaluate itself) + renamed "Test Type" to "Test"
* visibility tooltip was wrong - now we can change visibility from the physic buttons instead of the outliner
* bonus * when you change the visibility from the physics panel the icon in the outliner wasn't changing

9 years agoLogic UI: more tooltips, adding (blank = all objects) for the Property field of...
Dalai Felinto [Fri, 21 Jan 2011 06:12:56 +0000 (06:12 +0000)]
Logic UI: more tooltips, adding  (blank = all objects) for the Property field of the physic sensors + using PROP_ANGLE for Radar Sensor
(to work in tooltips bring good karma !)

9 years agobugfix [#25712] Deletion of vertex groups under script control causes incorrect reass...
Campbell Barton [Fri, 21 Jan 2011 05:09:32 +0000 (05:09 +0000)]
bugfix [#25712] Deletion of vertex groups under script control causes incorrect reassignment of vertices in other groups

vgroup functions were mixing up active group and one passed as an argument.

also made other changes.
- removed superfluous call to defvert_find_index() in vgroup_delete_object_mode(), was also doing unnecessary NULL check on each loop.
- remove paranoid NULL check from ED_vgroup_vert_remove, callers all check for valid 'ob'

9 years agoBGE Logic UI: Near Sensor tooltip update
Dalai Felinto [Fri, 21 Jan 2011 04:07:32 +0000 (04:07 +0000)]
BGE Logic UI: Near Sensor tooltip update

9 years agochange mathutils.Matrix.Shear() for 3x3 or 4x4 matrices
Campbell Barton [Fri, 21 Jan 2011 03:18:01 +0000 (03:18 +0000)]
change mathutils.Matrix.Shear() for 3x3 or 4x4 matrices

The plane which defined the shear had the factor applied to each axis equally.
This meant that the shear for any 3x3 or 4x4 matrix would be diagonal on the positive values of each axis.
Only being able to create diagonal shear matrices seems stupid, now take a pair of floats for the shear factor corresponding to the plane axis values, so its possible to shear on only one axis of the plane.

9 years agocorrect spelling
Campbell Barton [Fri, 21 Jan 2011 02:32:58 +0000 (02:32 +0000)]
correct spelling

9 years ago[#25732] Incorrect shear matrix in XY plane
Campbell Barton [Fri, 21 Jan 2011 02:27:04 +0000 (02:27 +0000)]
[#25732] Incorrect shear matrix in XY plane
fix included by Lawrence D'Oliveiro (ldo)

9 years agoSVN maintenance.
Guillermo S. Romero [Fri, 21 Jan 2011 00:33:37 +0000 (00:33 +0000)]
SVN maintenance.

9 years agoimport/export automated testing using CMake's CTest
Campbell Barton [Fri, 21 Jan 2011 00:06:30 +0000 (00:06 +0000)]
import/export automated testing using CMake's CTest

Will need to write full docs on this on the wiki.
basic info.
- 21 tests, OBJ/3DS/X3D/FBX, 3 tests per format import export. STL, PLY, BVH are TODO.
- uses files in ../lib/tests (checkout separate)
- run with CMake Makefiles "make test" or "ctest"
- currently checks against basic MD5 hash on scene import and file MD5 hash on export (realize this wont work predictably on binary formats *TODO*).
- currently uses a generic script for all tests with arguments to specify command to run, expected output, testing method, files to check against etc.

Has already proved useful, found a number of bugs in import export and some in blender too.

9 years agocorrect fix for [#25737] Console error message
Campbell Barton [Thu, 20 Jan 2011 23:05:25 +0000 (23:05 +0000)]
correct fix for [#25737] Console error message

9 years ago- Bugfix: NLA "duplicate" operator now lets strips get moved between
Joshua Leung [Thu, 20 Jan 2011 22:22:16 +0000 (22:22 +0000)]
- Bugfix: NLA "duplicate" operator now lets strips get moved between
tracks too, instead of only sliding around on the track they were
defined on.
- Adding description fields for many (older) operators that lacked

9 years agoBugfix [#25737] Console error message
Joshua Leung [Thu, 20 Jan 2011 21:46:11 +0000 (21:46 +0000)]
Bugfix [#25737] Console error message

It seems that rna_def_effect() is missing a rna_def_input(), resulting

  rna_uiItemR: property not found:
  rna_uiItemR: property not found: EffectSequence.animation_offset_end

in the console. I'm not sure whether these settings are used for
"effect" strips or not, but I'll leave that to sequencer guys to
figure out if/when they get a report about this.

9 years agobugfix [#25742] doesn't work with python 3.1
Campbell Barton [Thu, 20 Jan 2011 21:02:42 +0000 (21:02 +0000)]
bugfix [#25742] doesn't work with python 3.1

9 years agoSmall code reshuffle... sequencer transform stuff was bisecting the
Joshua Leung [Thu, 20 Jan 2011 20:51:38 +0000 (20:51 +0000)]
Small code reshuffle... sequencer transform stuff was bisecting the
code for object transform stuff

9 years agoGhost:X11 Set the default max width and max height value.
Diego Borghetti [Thu, 20 Jan 2011 20:24:18 +0000 (20:24 +0000)]
Ghost:X11 Set the default max width and max height value.

Some window manager can set default value of this to be the
screen size, so running blender with -p or --window-geometry
don't work with value bigger than that.

This commit try to "avoid" the bug #25709, but at the end
depend on the window manager, so maybe work or maybe not.

9 years agoBugfix #25656
Ton Roosendaal [Thu, 20 Jan 2011 18:34:48 +0000 (18:34 +0000)]
Bugfix #25656

Fixed one of oldest annoyances in Blender: the text input button!
It always behaved stupid when you had clipped text in a button.

Now while using arrows the cursor will move as expected, and only
internally shift contents when cursor reaches edge of button.

9 years agoBugfix #25619
Ton Roosendaal [Thu, 20 Jan 2011 16:29:43 +0000 (16:29 +0000)]
Bugfix #25619

Paint modes: toolbar showed the preview image with double scaling applied,
so if UI zoomed in the image grew outside boundary.

9 years agoBugfix #25611
Ton Roosendaal [Thu, 20 Jan 2011 15:17:02 +0000 (15:17 +0000)]
Bugfix #25611

Pose Proxy: layer settings only saved the 16 bits for proxy armatures, was
still a short, whilst the other layer settings use ints.

9 years agoNLA Tool Bugfixes:
Joshua Leung [Thu, 20 Jan 2011 09:26:36 +0000 (09:26 +0000)]
NLA Tool Bugfixes:
- Swap strips operator crashed when it encountered an empty track
- Duplicating NLA strips was renaming the wrong strips - the old ones
would always get renamed, which was annoying

9 years agono functional change,
Campbell Barton [Thu, 20 Jan 2011 07:44:58 +0000 (07:44 +0000)]
no functional change,
- remove G.flag, its not used anywhere (and confusing with G.f).
- also remove strcpy where memory locations may overlap.

9 years agofix for bug where python functions were not raising exceptions because reports were...
Campbell Barton [Thu, 20 Jan 2011 07:41:25 +0000 (07:41 +0000)]
fix for bug where python functions were not raising exceptions because reports were not added to the list in background mode.

9 years agodon't set the path to ~/untitled.blend on initializing the WM, this isn't well define...
Campbell Barton [Thu, 20 Jan 2011 07:38:00 +0000 (07:38 +0000)]
don't set the path to ~/untitled.blend on initializing the WM, this isn't well defined how this behavior should work,
existing behavior was inconsistent since loading a new file would set the path to "".

9 years agoNLA backend code cleanups: Ensure all user-count management is done
Joshua Leung [Wed, 19 Jan 2011 23:05:02 +0000 (23:05 +0000)]
NLA backend code cleanups: Ensure all user-count management is done
via id_us_*() functions instead of direct access, for more security

9 years agoBugfix [#25721] Unable to delete grease pencil data blocks
Joshua Leung [Wed, 19 Jan 2011 22:49:09 +0000 (22:49 +0000)]
Bugfix [#25721] Unable to delete grease pencil data blocks

Missing check for id-block users before saving

9 years agoCommand line options to set blender system environment variables.
Campbell Barton [Wed, 19 Jan 2011 21:30:23 +0000 (21:30 +0000)]
Command line options to set blender system environment variables.
Added because CTest has no convenient way to set environment vars for commands it runs.

 --env-system-config -> BLENDER_SYSTEM_CONFIG
 --env-system-datafiles -> BLENDER_SYSTEM_DATAFILES
 --env-system-scripts -> BLENDER_SYSTEM_SCRIPTS
 --env-system-plugins -> BLENDER_SYSTEM_PLUGINS
 --env-system-python -> BLENDER_SYSTEM_PYTHON

9 years agoset variable as unused.
Campbell Barton [Wed, 19 Jan 2011 19:58:44 +0000 (19:58 +0000)]
set variable as unused.

9 years agoBugfix #25613
Ton Roosendaal [Wed, 19 Jan 2011 18:07:13 +0000 (18:07 +0000)]
Bugfix #25613

Dropping file in Blender from pre 2.5 period caused eternal loop
loading .blend files :)