blender.git
9 years agobake operator and UI, no feedback while baking yet
Campbell Barton [Tue, 29 Dec 2009 18:55:38 +0000 (18:55 +0000)]
bake operator and UI, no feedback while baking yet

9 years agoBGE: stereoscopic settings changes: (1) eye separation is the UI (2) focallength...
Dalai Felinto [Tue, 29 Dec 2009 15:47:20 +0000 (15:47 +0000)]
BGE: stereoscopic settings changes: (1) eye separation is the UI (2) focallength uses camera focallength

Now the default eye separation value is 0.10 (reasonable for games with 1 meter == 1 B.U.
The focallength used is the camera focal length (DOF settings). It allow you to even use different focal lengths for different scenes (good for UI)

In order to change it you can change the camera focal length or use Rasterizer.setFocalLength.
If you use the Rasterizer method it will use this value for all the cameras.

ToDo:
- Blenderplayer settings
- Update wiki documentation (any volunteer)?

* Note to stereo fans:
I don't have a real stereo environment to test it (other than cheap cyan-red glasses). If you can give it a try in a more robust system and report bugs or problems with BGE current system please let me know. I would be glad to help to make it work 100% by the time Blender 2.5 is out.

For the record, BGE is using the method known as 'parallel axis asymmetric frustum perspective projection'. This method is well documented here:
http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/stereographics/stereorender/

9 years agoarg!, my secret testing keyword is exposed
Campbell Barton [Tue, 29 Dec 2009 15:47:16 +0000 (15:47 +0000)]
arg!, my secret testing keyword is exposed

9 years ago* speedup for animating bones, in one scene with sintel and a dragon animated its...
Campbell Barton [Tue, 29 Dec 2009 15:40:26 +0000 (15:40 +0000)]
* speedup for animating bones, in one scene with sintel and a dragon animated its over 4x faster.
* utility function BLI_findstring to avoid listbase lookup loops everywhere.
  eg:
    ListBase *lb= objects= &CTX_data_main(C)->object;
    Object *ob= BLI_findstring(lb, name, offsetof(ID, name) + 2);

* made some more math functions use const's, (fix warnings I made in previous commits)

9 years ago* More small modifier tweaks.
Thomas Dinges [Tue, 29 Dec 2009 12:53:30 +0000 (12:53 +0000)]
* More small modifier tweaks.

9 years ago* Some layout tweaks for the Solidify Modifier.
Thomas Dinges [Tue, 29 Dec 2009 12:04:37 +0000 (12:04 +0000)]
* Some layout tweaks for the Solidify Modifier.

9 years agoBugfix #20503: Add constraint (with targets) menu lacks a window refresh
Joshua Leung [Tue, 29 Dec 2009 11:21:51 +0000 (11:21 +0000)]
Bugfix #20503: Add constraint (with targets) menu lacks a window refresh

9 years agoModifier Drawing Tweaks:
Joshua Leung [Tue, 29 Dec 2009 10:25:14 +0000 (10:25 +0000)]
Modifier Drawing Tweaks:

* Reorganised the (template) drawing code for modifiers, removing some old/commented out code, and grouping related sets of info to draw

* Separated the render/realtime/editmode toggles into a separate row below the modifier name so that the layout is less compressed with narrow properties windows (i.e. on the default setup).

9 years agoMakefiles: fix audaspace include paths
Stefan Gartner [Tue, 29 Dec 2009 09:56:11 +0000 (09:56 +0000)]
Makefiles: fix audaspace include paths

9 years agoMake manipulator axis fade away and become invisible when perpendicular to the screen.
Martin Poirier [Tue, 29 Dec 2009 01:12:54 +0000 (01:12 +0000)]
Make manipulator axis fade away and become invisible when perpendicular to the screen.

Move some more vars to RegionView3D from View3D

Also remove some code no longer used.

9 years agonetrender tab to spaces
Campbell Barton [Tue, 29 Dec 2009 00:04:57 +0000 (00:04 +0000)]
netrender tab to spaces

9 years agoAdd audaspace/fftw to Makefile system.
Guillermo S. Romero [Mon, 28 Dec 2009 23:40:20 +0000 (23:40 +0000)]
Add audaspace/fftw to Makefile system.

9 years agoflag to make rna props 'thick wrapped', so returning a property wont try maintain...
Campbell Barton [Mon, 28 Dec 2009 22:59:09 +0000 (22:59 +0000)]
flag to make rna props 'thick wrapped', so returning a property wont try maintain a reference to the original rna property with callbacks.
also needed for functions that return vectors/matrix's

9 years agonetrender: show web interface button in all modes. use rna decorator all the time...
Martin Poirier [Mon, 28 Dec 2009 22:49:22 +0000 (22:49 +0000)]
netrender: show web interface button in all modes. use rna decorator all the time (no need for special operator decorator)

9 years agoPython attribute lookup. Don't use RNA functions that don't have defined callbacks...
Martin Poirier [Mon, 28 Dec 2009 22:48:10 +0000 (22:48 +0000)]
Python attribute lookup. Don't use RNA functions that don't have defined callbacks (can happen for operator functions used for registration only).

9 years agoUtility function to get the view vector aligned with a specific 3d coordinate.
Martin Poirier [Mon, 28 Dec 2009 22:40:52 +0000 (22:40 +0000)]
Utility function to get the view vector aligned with a specific 3d coordinate.

9 years agoUpdate MSVC project files
Benoit Bolsee [Mon, 28 Dec 2009 22:16:13 +0000 (22:16 +0000)]
Update MSVC project files

9 years agodont register or undo 3D cursor setting
Campbell Barton [Mon, 28 Dec 2009 18:09:16 +0000 (18:09 +0000)]
dont register or undo 3D cursor setting

9 years ago- object.add_shape_key(name="Key", from_mix=True)
Campbell Barton [Mon, 28 Dec 2009 18:03:04 +0000 (18:03 +0000)]
- object.add_shape_key(name="Key", from_mix=True)
- ensure new shape key names are unique
- Transfer ShapeKey now can have its settings changes (redo operator)

9 years agomoved shape key insert function into BKE_object.h
Campbell Barton [Mon, 28 Dec 2009 15:26:36 +0000 (15:26 +0000)]
moved shape key insert function into BKE_object.h

9 years agoremove operators WM_OT_open_recentfile and WM_OT_open_recentfile_splash
Campbell Barton [Mon, 28 Dec 2009 10:44:02 +0000 (10:44 +0000)]
remove operators WM_OT_open_recentfile and WM_OT_open_recentfile_splash
use a python menu instead.

9 years agoSound:
Joerg Mueller [Mon, 28 Dec 2009 10:15:35 +0000 (10:15 +0000)]
Sound:

* Fixed minor errors in AUD_BufferReader.cpp and AUD_LoopFactory.h
* Added a first version of a bandpass filter using fftw3

9 years agonew python module constants
Campbell Barton [Mon, 28 Dec 2009 10:00:04 +0000 (10:00 +0000)]
new python module constants
* bpy.home - result of BLI_gethome()
* bpy.version - BLENDER_VERSION/100, BLENDER_VERSION%100, BLENDER_SUBVERSION
* bpy.version_string, as above, formatted: "%d.%02d (sub %d)"

9 years agoAdded 'Add New' buttons to key maps shown in filtered mode.
Matt Ebb [Mon, 28 Dec 2009 09:19:32 +0000 (09:19 +0000)]
Added 'Add New' buttons to key maps shown in filtered mode.

Also on adding new, it expands the key map category and clears the
filter so you can see the newly added item.

9 years agoFix for [#19519] Dope sheet scrollbar goes out of bounds
Matt Ebb [Mon, 28 Dec 2009 08:01:19 +0000 (08:01 +0000)]
Fix for [#19519] Dope sheet scrollbar goes out of bounds

9 years agoGot rid of some dead code
Matt Ebb [Mon, 28 Dec 2009 05:14:32 +0000 (05:14 +0000)]
Got rid of some dead code

9 years agoAdded location and rotation operator properties for adding objects. The Align to...
Matt Ebb [Mon, 28 Dec 2009 04:09:46 +0000 (04:09 +0000)]
Added location and rotation operator properties for adding objects. The Align to View boolean
is now just used to set the rotation property value during invoke.

This removes some reliance on 3d view info for non-interactive use, and also lets you specify
new object's locations/rotations explicitly when calling from Python.

9 years agoAssorted Animation/RNA fixes:
Joshua Leung [Mon, 28 Dec 2009 03:45:24 +0000 (03:45 +0000)]
Assorted Animation/RNA fixes:
* Fix for compiler warning in mesh.c from previous commit
* Fix for wrong name for dopesheet filter button used for meshes
* Added RNA defines for the default values for quaternion and axis-angle rotations, so that clearing these to their default values "does the right thing (TM)"

9 years agoFix for [#20032] outliner cuts off long names after pasing them
Matt Ebb [Mon, 28 Dec 2009 01:31:47 +0000 (01:31 +0000)]
Fix for [#20032] outliner cuts off long names after pasing them

The system that ensures unique ID names chopped off the end
of the name to add a number suffix (.001 or so) regardless of
whether it already had a number or not. In this particular case,
(no suffix number) it now just shaves off the last letter of the
name until it's unique.

I've been testing this patch here for a while, and seems to work
properly, if anyone would like to have a quick look over this
commit and doublecheck, that would be great too.

9 years agoChange to the way brush/tool selection works, as discussed a while ago
Matt Ebb [Mon, 28 Dec 2009 01:27:05 +0000 (01:27 +0000)]
Change to the way brush/tool selection works, as discussed a while ago

Now, there are preset brushes made for each tool type (eg. for sculpt mode, Grab,
Draw, Inflate, etc), and the recommended method for changing sculpt tools is to
change between Brushes. The shortcut keys for changing between tools have
now been changed to change between named brushes - the G key in sculpt
mode now changes to any brush named 'Grab'.

The advantages of this are:
* Changing between brushes remembers the strength/size/texture etc settings for
each brush. This means that for example, you can draw with a strong textured
Clay brush, but then switch quickly to a weaker, untextured Smooth brush,
without having to re-do your settings each time.
* You can now add your own custom shortcut keys to your own custom brushes -
just add a keymap entry similar to the existing ones, that references your own
custom brush names.

To bring over these new default brushes to an existing B.blend setup, just
append them in from the new B.blend in svn.

9 years agoMesh Animation + Depsgraph Tweaks:
Joshua Leung [Mon, 28 Dec 2009 00:52:31 +0000 (00:52 +0000)]
Mesh Animation + Depsgraph Tweaks:

* Mesh data/settings can now be animated. It is not recommended that geometry be animated directly, but other settings such as autosmooth, etc. can be...

* Code cleanups for depsgraph, making sure that drivers get included for all object data types.

9 years agoTry to get soft body to curve working
Jens Ole Wund [Mon, 28 Dec 2009 00:07:24 +0000 (00:07 +0000)]
Try to get soft body to curve working

9 years agoCurve/Nurbs/Font Animation Bugfixes:
Joshua Leung [Sun, 27 Dec 2009 23:37:13 +0000 (23:37 +0000)]
Curve/Nurbs/Font Animation Bugfixes:

* NURBS and Font animation data now appear in the animation editors.

* Fixed depsgraph tagging code for determining if the AnimData attached to object data blocks (i.e. animation for curve or lamp data) needs to be tagged for updates on frame changes. This means that animating curve settings now works.

9 years ago- loading missing files didnt give any warning
Campbell Barton [Sun, 27 Dec 2009 23:29:34 +0000 (23:29 +0000)]
- loading missing files didnt give any warning
- shape key transfer poll function

9 years agoWIP console text selection, modal selection operator and selection drawing.
Campbell Barton [Sun, 27 Dec 2009 20:22:06 +0000 (20:22 +0000)]
WIP console text selection, modal selection operator and selection drawing.
word wrap and clipboard are not working yet.

9 years agoPartial fix for [#20166] Snap to grid issues
Martin Poirier [Sun, 27 Dec 2009 18:09:17 +0000 (18:09 +0000)]
Partial fix for [#20166] Snap to grid issues

Move gridview (the actual drawn grid size, including adaptation to zoom) to RegionView3D from View3D.

This solves the transform increment bug but not the Snap Menu bug (context is not set to the correct rv3d when executing operator from menu).

9 years agoWrong description in WM_OT_call_menu
Martin Poirier [Sun, 27 Dec 2009 17:57:24 +0000 (17:57 +0000)]
Wrong description in WM_OT_call_menu

9 years agoTransfer Shape Key
Campbell Barton [Sun, 27 Dec 2009 11:14:06 +0000 (11:14 +0000)]
Transfer Shape Key
Useful if you have 2 different characters with the same base mesh (matching indicies), and want to copy a facial expression for eg, from one to another.
Durian request to re-use shapes between characters.

* Copies the active shape to other selected objects
* Different methods to apply the shape
* * OFFSET, simple translation offset
* * RELATIVE (EDGE/FACE), Use Barycentric transformation to copy the shape. This means the target mesh can be a different orientation and scale and the shape should still apply since the surrounding geometry is used as a basis for the offset.

bug: barycentric transform's depth was inverted.

Note:
* This isnt added into a menu yet,
* This cant be redone since adding a shape key messes up the redo stack. needs fixing for other scripts too.

9 years agoDopeSheet + Graph Editor hotkey tweak:
Joshua Leung [Sun, 27 Dec 2009 01:36:32 +0000 (01:36 +0000)]
DopeSheet + Graph Editor hotkey tweak:

Made the TAB key toggle the editability of selected channels in the keyframes area in addition to the channels list.

9 years agobarycentric transform utility geometry function.
Campbell Barton [Sun, 27 Dec 2009 01:32:58 +0000 (01:32 +0000)]
barycentric transform utility geometry function.
From 2 triangles and 1 point, the relative position between the point and the first triangle is applied to the second triangle to find the target point.
the barycentric weights are calculated in 2D space with a signed area so values outside the triangle bounds are supported.

wrapped by python:
 pt_to = Geometry.BarycentricTransform(pt_from, t1a, t1b, t1c, t2a, t1b, t1c)

NOTE:
- moved some barycentric weight functions out of projection painting into the math lib.
- ended up making some of the math functions use const args.
TODO:
- support exceptional cases. zero area tries and similar.

9 years agoBugfix 20469: Graph Editor Keyframes jumping around with NLA strips
Joshua Leung [Sun, 27 Dec 2009 01:28:13 +0000 (01:28 +0000)]
Bugfix 20469: Graph Editor Keyframes jumping around with NLA strips

NLA corrections for Graph Editor transforms was wrong way around, causing jumping issues when trying to transform the keyframes.

9 years agofixes for errors/warnings found with cppcheck
Campbell Barton [Sat, 26 Dec 2009 20:23:13 +0000 (20:23 +0000)]
fixes for errors/warnings found with cppcheck

9 years agoclassmethods were excluded from docs, hide self & cls arguments for functions and...
Campbell Barton [Sat, 26 Dec 2009 17:49:08 +0000 (17:49 +0000)]
classmethods were excluded from docs, hide self & cls arguments for functions and class methods,
made some rna ui funcs not display as optional.

9 years ago* sphinx docgen *
Campbell Barton [Sat, 26 Dec 2009 16:47:25 +0000 (16:47 +0000)]
* sphinx docgen *
py_function_args wasnt working right (was using function namespace for function args), use pythons inspect module instead.
move the function to get a type description into rna_info

9 years agoParticles bug fix: Particle birth location between frames weren't calculated correctl...
Janne Karhu [Sat, 26 Dec 2009 15:59:07 +0000 (15:59 +0000)]
Particles bug fix: Particle birth location between frames weren't calculated correctly for moving emitters as the functionality of where_is_object_time has changed a bit in the new anim system.

9 years agopep8 edits, removed MakeCursor.py and rna_array.py, not important to make pep8
Campbell Barton [Sat, 26 Dec 2009 09:36:50 +0000 (09:36 +0000)]
pep8 edits, removed MakeCursor.py and rna_array.py, not important to make pep8

9 years agothe user interface could access invalid RNA on deleting objects since checking the...
Campbell Barton [Sat, 26 Dec 2009 01:04:46 +0000 (01:04 +0000)]
the user interface could access invalid RNA on deleting objects since checking the button ran after freeing the data.

9 years agoFix for [#20294] Switching to particle mode after changing number of hair particles...
Janne Karhu [Sat, 26 Dec 2009 00:17:54 +0000 (00:17 +0000)]
Fix for [#20294] Switching to particle mode after changing number of hair particles causes blender to crash.
* Particle edit mode wasn't freed when the particle amount was changed.

9 years ago- closing the user prefs accessed the temp screen after removing it.
Campbell Barton [Sat, 26 Dec 2009 00:17:45 +0000 (00:17 +0000)]
- closing the user prefs accessed the temp screen after removing it.
- colorband drawing could use un-initialized vars (probably wouldnt crash)

9 years agoinvalid memory access fix
Campbell Barton [Fri, 25 Dec 2009 23:59:12 +0000 (23:59 +0000)]
invalid memory access fix

9 years agoFix for [#20458] Segmentation fault when trying to enable Hair dynamics
Janne Karhu [Fri, 25 Dec 2009 23:51:29 +0000 (23:51 +0000)]
Fix for [#20458] Segmentation fault when trying to enable Hair dynamics
* The hair mesh vertex index was stored as a short, but vertex counts can easily go higher than what fits in a short so changed this to an int.
* Also removed particle life looping, which didn't work correctly anyways. Similar functionality will become available when I get to recoding reactor particles into a better system.

9 years agofix for accessing invalid memory when loading a new file.
Campbell Barton [Fri, 25 Dec 2009 23:50:35 +0000 (23:50 +0000)]
fix for accessing invalid memory when loading a new file.

9 years agoParticles bug fix: using virtual parents for child particles crashed in some cases.
Janne Karhu [Fri, 25 Dec 2009 22:58:11 +0000 (22:58 +0000)]
Particles bug fix: using virtual parents for child particles crashed in some cases.

9 years agoreplace dynamic_menu.py with Menu classmethods much less complicated.
Campbell Barton [Fri, 25 Dec 2009 22:16:19 +0000 (22:16 +0000)]
replace dynamic_menu.py with Menu classmethods much less complicated.
access append/prepend eg.

bpy.types.INFO_MT_file_import.append(lambda self, context: self.layout.operator("import_some.format"))

9 years agobugfix [#20237] Import error
Campbell Barton [Fri, 25 Dec 2009 20:52:05 +0000 (20:52 +0000)]
bugfix [#20237] Import error
(export X90 rotation wasnt right)

9 years agobugfix [#20253] Import/Export fails
Campbell Barton [Fri, 25 Dec 2009 20:47:23 +0000 (20:47 +0000)]
bugfix [#20253] Import/Export fails

9 years agofix for [#20244] importing .obj without "Object" option checked crashes blender
Campbell Barton [Fri, 25 Dec 2009 20:40:00 +0000 (20:40 +0000)]
fix for [#20244] importing .obj without "Object" option checked crashes blender

9 years agobad rna limit referred to in [#20483] Inputs are capped
Campbell Barton [Fri, 25 Dec 2009 18:06:05 +0000 (18:06 +0000)]
bad rna limit referred to in [#20483] Inputs are capped
enable distance for some settings

9 years agosphinx rna api documentation generator to replace epydocs
Campbell Barton [Fri, 25 Dec 2009 15:50:53 +0000 (15:50 +0000)]
sphinx rna api documentation generator to replace epydocs
- view docs menu item opens sphinx URL
- can be searched (even when local)
- uses rna_info module for introspection
- also documents python defined functions and decorator properties (defined in bpy_types.py)
- experemental python file:line references for python operators.

9 years agoupdate rna_info and rna_rna for better introspection
Campbell Barton [Fri, 25 Dec 2009 14:42:00 +0000 (14:42 +0000)]
update rna_info and rna_rna for better introspection

9 years agofix for segfault getting RNA Enum default values, minor updates to introspection...
Campbell Barton [Fri, 25 Dec 2009 09:01:23 +0000 (09:01 +0000)]
fix for segfault getting RNA Enum default values, minor updates to introspection class

9 years agooperator draw function working again. needed to add layout to the operator to give...
Campbell Barton [Thu, 24 Dec 2009 21:17:14 +0000 (21:17 +0000)]
operator draw function working again. needed to add layout to the operator to give access to "self.layout" - like panels, headers and manu's have

9 years agoSVN maintenance.
Guillermo S. Romero [Thu, 24 Dec 2009 21:15:27 +0000 (21:15 +0000)]
SVN maintenance.

9 years ago* register operators like other classes
Campbell Barton [Thu, 24 Dec 2009 19:50:43 +0000 (19:50 +0000)]
* register operators like other classes
* operators now return sets (converted into flags)
* can't remove bpy_operator_wrap.c since macro's still use the custom register funcs

9 years agosupport for registering operators using the same internal rna api as panels, menus...
Campbell Barton [Thu, 24 Dec 2009 16:10:26 +0000 (16:10 +0000)]
support for registering operators using the same internal rna api as panels, menus, headers & render engines since there was a fair bit of duplicate functionality.

will remove the old system and update scripts next.

9 years agoAdded rectifying sound effect (will be used for sound -> f-curve later).
Joerg Mueller [Thu, 24 Dec 2009 14:58:11 +0000 (14:58 +0000)]
Added rectifying sound effect (will be used for sound -> f-curve later).

9 years agoReverted the addition of the f-curve sound modifier (was added in revision 24759...
Joerg Mueller [Thu, 24 Dec 2009 14:01:22 +0000 (14:01 +0000)]
Reverted the addition of the f-curve sound modifier (was added in revision 24759) due to unusability and performance issues. The ability to use a sound as animation source will be added as an import operator later that renders a sound to an f-curve which brings the advantage that you can edit the generated curve later and the disadvantage it is not automatically updated when the sound changes.

9 years agominor pyapi changes
Campbell Barton [Thu, 24 Dec 2009 11:40:14 +0000 (11:40 +0000)]
minor pyapi changes

9 years agoRemoved a few operators that were just used to generate popup menus and replaced...
Matt Ebb [Thu, 24 Dec 2009 10:39:30 +0000 (10:39 +0000)]
Removed a few operators that were just used to generate popup menus and replaced with python defined menus.

9 years agopedantic naming: wmKeyMapItem wasnt called 'kmi' in some cases.
Campbell Barton [Thu, 24 Dec 2009 09:36:15 +0000 (09:36 +0000)]
pedantic naming: wmKeyMapItem wasnt called 'kmi' in some cases.

9 years agoKey map related things:
Matt Ebb [Thu, 24 Dec 2009 09:26:06 +0000 (09:26 +0000)]
Key map related things:
* Moved 'change shortcut' (previously directly RMB on menu items) to a context-menu item, and added Remove Shortcut and Add Shortcut. This is all available now in a RMB context menu for operator buttons and menu entries.
* Renamed a bunch of key maps to be consistent with UI names, and human-readable. Since these key map names are now being directly used in the UI for people to find things, they should be understandable and in plain language.

This renaming may break some older saved key map setups - though previously saved .b25.blends should convert over ok. Exported .py files may need some find/replacing - in this commit check the changes in resources.c to see what's changed.

9 years agoOSX / Scons : set MACOSX_DEPLOYMENT_TARGET env var to allow builds for older systems
Damien Plisson [Wed, 23 Dec 2009 15:56:00 +0000 (15:56 +0000)]
OSX / Scons : set MACOSX_DEPLOYMENT_TARGET env var to allow builds for older systems

9 years agocrash fix for sculpt when loading some files
Campbell Barton [Wed, 23 Dec 2009 15:51:39 +0000 (15:51 +0000)]
crash fix for sculpt when loading some files

9 years agofix for a crash when running blender in debug mode (-d arg), was registering every...
Campbell Barton [Wed, 23 Dec 2009 15:06:47 +0000 (15:06 +0000)]
fix for a crash when running blender in debug mode (-d arg), was registering every operator in debug mode.
added some more sculpt key shortcuts
* R toggles rake
* Shift+A toggles airbrush

note: last commit added Ctrl+0 to set zero subsurf and multires

9 years agokey shortcits for sculpt back
Campbell Barton [Wed, 23 Dec 2009 12:13:48 +0000 (12:13 +0000)]
key shortcits for sculpt back
- T was 'Flatten Brush', now Shift+T
- added an option to OBJECT_OT_subdivision_set to set the level relatively (so page up/down works), however RNA lets it set one level higher then the maximum, this seems displays OK in the 3D view so not sure whats going on here (as if there is always an extra hidden multires level).

9 years agoFix compilation of carbon quicktime & complete use of report mechanism instead of...
Damien Plisson [Wed, 23 Dec 2009 11:49:07 +0000 (11:49 +0000)]
Fix compilation of carbon quicktime & complete use of report mechanism instead of standard printf

9 years agoBugfix #20463: In graph editor bone channels cannot be selected with 'A' or 'B' borde...
Joshua Leung [Wed, 23 Dec 2009 11:22:30 +0000 (11:22 +0000)]
Bugfix #20463: In graph editor bone channels cannot be selected with 'A' or 'B' border select

This bug was caused by my recent commit to get bone select -> selection syncing working. The selection flushing was occurring too readily, blocking any selection tools from having any visible effect. Now this syncing is only triggered when appropriate notifiers+flags have been set.

9 years agoBGE: fix more transpose bug when MathUtils is not used.
Benoit Bolsee [Wed, 23 Dec 2009 09:55:34 +0000 (09:55 +0000)]
BGE: fix more transpose bug when MathUtils is not used.

9 years agoBGE: fix more matrix transpose bugs in assignement to game object matrices.
Benoit Bolsee [Tue, 22 Dec 2009 23:38:09 +0000 (23:38 +0000)]
BGE: fix more matrix transpose bugs in assignement to game object matrices.

Assignment to KX_GameObject localOrientation and
worldOrientation matrices was assuming row-major matrix
although reading these matrices was returning a column-major
MathUtils object.

The faulty function (PyMatTo) is fixed and all matrices
in python are now assumed column-major.

This function is also used in the following methods:

BL_Shader.setUniformMatrix4()
BL_Shader.setUniformMatrix3()

(No change in scripts if you didn't specify the optional
transpose parameter: the default value is changed so
that column-major matrices are assumed as before.)

KX_Camera.projection_matrix

(assignement to this attribute now requires a column-major
matrix and you must fix your script if you were setting
a value to this attribute.)

9 years agoThis fixes the following coverity issues: 163 162 161
Kent Mein [Tue, 22 Dec 2009 22:03:57 +0000 (22:03 +0000)]
This fixes the following coverity issues: 163 162 161

Basically the function wasn't freeing memory it used before
returning.

Kent

9 years agoMissing angle_v3v3 definition (it was declared)
Martin Poirier [Tue, 22 Dec 2009 19:56:12 +0000 (19:56 +0000)]
Missing angle_v3v3 definition (it was declared)
Wrong definition for angle_v2v2 (it read 2d vectors as 3d vectors)

9 years agoBGE: update for new soft body helpers API.
Benoit Bolsee [Tue, 22 Dec 2009 19:53:44 +0000 (19:53 +0000)]
BGE: update for new soft body helpers API.

9 years agoBullet: synchronize soft body helpers with current SVN.
Benoit Bolsee [Tue, 22 Dec 2009 19:52:14 +0000 (19:52 +0000)]
Bullet: synchronize soft body helpers with current SVN.

9 years agoMSVC project files
Benoit Bolsee [Tue, 22 Dec 2009 19:50:20 +0000 (19:50 +0000)]
MSVC project files

9 years agoselect nth (face/edge/vertex) - depending on which was last selected, useful for...
Campbell Barton [Tue, 22 Dec 2009 19:01:51 +0000 (19:01 +0000)]
select nth (face/edge/vertex) - depending on which was last selected, useful for colapsing every other edge for eg.

9 years agoBGE: fix bug with rigid body joint constraint target name: skip OB letter.
Benoit Bolsee [Tue, 22 Dec 2009 18:39:42 +0000 (18:39 +0000)]
BGE: fix bug with rigid body joint constraint target name: skip OB letter.

9 years agoselect linked and select linked pick working again (wth shift for extend)
Campbell Barton [Tue, 22 Dec 2009 17:18:33 +0000 (17:18 +0000)]
select linked and select linked pick working again (wth shift for extend)

9 years ago- make ToolSettings.mesh_selection_mode into an array of 3 bools rather then an enum...
Campbell Barton [Tue, 22 Dec 2009 16:11:11 +0000 (16:11 +0000)]
- make ToolSettings.mesh_selection_mode into an array of 3 bools rather then an enum since multiple can be set at once.
- ToolSettings had its id.data set to NULL when taken directly from the context (causing a crash in cases)
- menu for changing vert/edge/face selection now a python menu, removed operator.
- wm.context_set_value(), would really prefer not to have this since it evaluates the value as a python expression however there are no ways to define arrays in PyOperators

9 years agoAttempt to fix compilation of quicktime after reporting changes
Brecht Van Lommel [Tue, 22 Dec 2009 15:20:31 +0000 (15:20 +0000)]
Attempt to fix compilation of quicktime after reporting changes
(can't build this file myself, only qtkit seems to work here).

9 years agoReports: writing movies now uses the reports mechanism to throw errors.
Brecht Van Lommel [Tue, 22 Dec 2009 12:01:32 +0000 (12:01 +0000)]
Reports: writing movies now uses the reports mechanism to throw errors.

Also fixes bug #19463: screencast to xvid ffmpeg crash.

9 years agoFix #20433: make single user doesn't work from menu. Popup menus for
Brecht Van Lommel [Tue, 22 Dec 2009 11:59:30 +0000 (11:59 +0000)]
Fix #20433: make single user doesn't work from menu. Popup menus for
operators were not passing along properties.

9 years agoclone and stencil layer access added, renamed mask to stencil layer internally
Campbell Barton [Tue, 22 Dec 2009 10:48:13 +0000 (10:48 +0000)]
clone and stencil layer access added, renamed mask to stencil layer internally

9 years agoAssorted F-Curve/Keyframe API stuff (for use with some Sequencer editing):
Joshua Leung [Tue, 22 Dec 2009 10:14:13 +0000 (10:14 +0000)]
Assorted F-Curve/Keyframe API stuff (for use with some Sequencer editing):
* Added function for F-Curves to find the F-Curves in a given list which affect some named data, such as bones, nodes, or sequence strips.

* Added a BezTriple offsetting callback to be used with the F-Curve+Keyframe loopers in use for many of the keyframe editing tools.

9 years agoquite a few python panels (10 or so) had names longer then the PanelType allowed,
Campbell Barton [Tue, 22 Dec 2009 10:04:15 +0000 (10:04 +0000)]
quite a few python panels (10 or so) had names longer then the PanelType allowed,
for panels it would fail silently but for menu's it meant further references would give errors.

increase the registered class name from 32 to 64 and raise an error if the limit reached.

9 years agoBGE bug #20446: revert to orignal code, the problems comes from misunderstanding...
Benoit Bolsee [Tue, 22 Dec 2009 09:46:03 +0000 (09:46 +0000)]
BGE bug #20446: revert to orignal code, the problems comes from misunderstanding of matrix theory. More details in bug report.

9 years agozoom to mouse for 2D view
Campbell Barton [Tue, 22 Dec 2009 08:39:59 +0000 (08:39 +0000)]
zoom to mouse for 2D view
note: this works in all views except for nodes which seem to use the view bounds differently

9 years agoincreasing camera lens limit to 172.85 (same as 2.49xx)
Dalai Felinto [Tue, 22 Dec 2009 08:05:19 +0000 (08:05 +0000)]
increasing camera lens limit to 172.85 (same as 2.49xx)
It's not range_ui, but range itself. if someone think that for some reason it's better to keep the visible range up to 100 (the current one) it could be as well.

9 years ago[#20446] mathutils: bugfix for matrix * matrix - patch by Paul Parchenko (parfoure...
Dalai Felinto [Tue, 22 Dec 2009 07:27:53 +0000 (07:27 +0000)]
[#20446] mathutils: bugfix for matrix * matrix - patch by Paul Parchenko (parfoure) thanks

From the tracker:
- typo was making the multiplication to transpose resulting matrix
eg
####
from Mathutils import *
from math import radians

cont = GameLogic.getCurrentController()
owner = cont.owner

owner.worldOrientation = RotationMatrix(radians(1), 3, 'z') * owner.worldOrientation
####

9 years agopy error fix and minor changes to rna info class
Campbell Barton [Mon, 21 Dec 2009 23:14:16 +0000 (23:14 +0000)]
py error fix and minor changes to rna info class

9 years agonetrender: display dispatching rules under master header. (read only for now)
Martin Poirier [Mon, 21 Dec 2009 19:56:53 +0000 (19:56 +0000)]
netrender: display dispatching rules under master header. (read only for now)