10 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 :)

10 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.

10 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.

10 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

10 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

10 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)

10 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.

10 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.

10 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

10 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.

10 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.

10 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.

10 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.

10 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.

10 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)

10 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.

10 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.

10 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.

10 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)

10 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.

10 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...

10 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.

10 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.

10 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.

10 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...

10 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

10 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

10 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

10 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).

10 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()

10 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.

10 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.

10 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)

10 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()

10 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.

10 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.

10 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.

10 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

10 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.

10 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.

10 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

10 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].

10 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.

10 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.

10 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).

10 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.

10 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.

10 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.

10 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.

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

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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

10 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 :

10 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).

10 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.

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

10 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

10 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 !)

10 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'

10 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

10 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.

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

10 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)

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

10 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.

10 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

10 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

10 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.

10 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

10 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

10 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.

10 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.

10 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.

10 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.

10 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

10 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.

10 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.

10 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 "".

10 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

10 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

10 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

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

10 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 :)

10 years agoBugfix #25720
Ton Roosendaal [Wed, 19 Jan 2011 17:10:05 +0000 (17:10 +0000)]
Bugfix #25720

Preview icons got lost... commit of yesterday caused it.
Conflict between preview render icons, and brush icons...

10 years agoBugfix #25652
Ton Roosendaal [Wed, 19 Jan 2011 14:19:20 +0000 (14:19 +0000)]
Bugfix #25652

Report was that move-to-layer menu failed. The real cause was
more complex; had to dive deep in the dungeons of the interface
code that handled undos and operators. Found several issues:

- popup menus (like redo operator, color picker) executed again
  on a mouse-exit
- far too many buttons were sending undo pushes; even worse, in
  the operator redo-panel each button action was pushed twice
- in case operator redo-buttons have own callbacks (like layer
  buttons) the redo wasn't working
- layerbutton menu was called without creating a proper undo/redo

Things should all work smoother now!

On todo:
- better definition and handling of all versions for operator menus
  (four types now, not fun)
  also: make operator "do" menu, which on first action does operator
  and then switches to redo-ing
- bring back Undo menu, to list the undo stack and jump in it.

10 years agoChanged Brightness/Contrast node to use also buffer inputs for the B/C inputs. These...
Lukas Toenne [Wed, 19 Jan 2011 13:32:59 +0000 (13:32 +0000)]
Changed Brightness/Contrast node to use also buffer inputs for the B/C inputs. These were only working with single values.

10 years agoAdded missing updates for NLA RNA settings
Joshua Leung [Wed, 19 Jan 2011 10:54:34 +0000 (10:54 +0000)]
Added missing updates for NLA RNA settings

10 years agoNLA Editor: Added "Sync Action Length" operator to Edit menu
Joshua Leung [Wed, 19 Jan 2011 10:45:35 +0000 (10:45 +0000)]
NLA Editor: Added "Sync Action Length" operator to Edit menu

Although strictly-speaking, this only applies to a certain type of NLA
Strip (there are 3 types), but since only the classic "Action Clip"
gets much attention, it's probably worth exposing this here too to
make batch editing of strips a bit easier.

10 years agoFix for [#25705] Crashing doing Bake in Partile System in Particle Mode
Janne Karhu [Wed, 19 Jan 2011 09:33:09 +0000 (09:33 +0000)]
Fix for [#25705] Crashing doing Bake in Partile System in Particle Mode
* Missing null check.

10 years agonew command line option '--factory-startup' to skip reading startup.blend. useful...
Campbell Barton [Wed, 19 Jan 2011 09:13:24 +0000 (09:13 +0000)]
new command line option '--factory-startup' to skip reading startup.blend. useful for testing with a predictable environment.
also commented python benchmark prints on exit, can enable when profiling later.