blender.git
9 years agoarmature ghost stepsize was not initialized, Aligorith: can you check this is correct?
Campbell Barton [Fri, 1 Jan 2010 19:10:31 +0000 (19:10 +0000)]
armature ghost stepsize was not initialized, Aligorith: can you check this is correct?
remove other small warnings

9 years agoAdded another three effects that you can use with the Sound to F-Curve modifier,...
Joerg Mueller [Fri, 1 Jan 2010 18:45:21 +0000 (18:45 +0000)]
Added another three effects that you can use with the Sound to F-Curve modifier, have fun!

9 years ago- grease pencil option to only use the endpoint depths. this makes drawing shapes...
Campbell Barton [Fri, 1 Jan 2010 17:48:48 +0000 (17:48 +0000)]
- grease pencil option to only use the endpoint depths. this makes drawing shapes in 3D easier since it wont stick to every depth the line passes through.
- use a 8x8 area when finding stroke depths since thin lines can get ignored if the point is not close enough to them.

9 years agogrease pencil stroke depth option, rather then snapping to geometry you can draw...
Campbell Barton [Fri, 1 Jan 2010 16:46:27 +0000 (16:46 +0000)]
grease pencil stroke depth option, rather then snapping to geometry you can draw over existing grease pencil lines. makes it easuer to draw 3D shapes with grease pencil.

9 years agomade the array interpolation function from last commit into a generic function
Campbell Barton [Fri, 1 Jan 2010 15:57:17 +0000 (15:57 +0000)]
made the array interpolation function from last commit into a generic function

/* given an array with some invalid values this function interpolates valid values
 * replacing the invalid ones */
int interp_sparse_array(float *array, int list_size, float skipval)

9 years agoFix some build warnings
Damien Plisson [Fri, 1 Jan 2010 15:48:14 +0000 (15:48 +0000)]
Fix some build warnings

9 years ago- grease pencil mode for drawing onto geometry (using the z-buffer), access in the...
Campbell Barton [Fri, 1 Jan 2010 15:05:31 +0000 (15:05 +0000)]
- grease pencil mode for drawing onto geometry (using the z-buffer), access in the 3D view panel.
- account for parts of the line going off into infinity by making the stroke stretch between the last valid depth values (like an elastic band), if the endpoints are not over any geometry then use the closest valid depth.

9 years agoAnother fix for the new year's commit, fixing the linear resampler (and such the...
Joerg Mueller [Fri, 1 Jan 2010 14:18:43 +0000 (14:18 +0000)]
Another fix for the new year's commit, fixing the linear resampler (and such the error that I though was in the envelope!).

9 years agofix for crash in recent ghost/do_versions
Campbell Barton [Fri, 1 Jan 2010 14:04:39 +0000 (14:04 +0000)]
fix for crash in recent ghost/do_versions

9 years agodisplacement was crashing because of the improved bumpmap. now its skipped when the...
Campbell Barton [Fri, 1 Jan 2010 13:56:30 +0000 (13:56 +0000)]
displacement was crashing because of the improved bumpmap. now its skipped when the ShaderInput's verts are not set.

9 years agoCleanup of MotionPaths+Ghosts (AnimViz) - Part 1
Joshua Leung [Fri, 1 Jan 2010 12:24:16 +0000 (12:24 +0000)]
Cleanup of MotionPaths+Ghosts (AnimViz) - Part 1

This commit sets up some of the groundwork necessary to extend the animation visualisation capabilities, previously only available for bones in PoseMode, to Objects as well. Also, some of the other goals of this refactor is to make future visualisation goodies (i.e. editable paths) more feasible...
(There's really nothing to see here yet. The following log notes are really just for my own reference to keep track of things.)

Currently, the following things have been done:
* New datastructures + settings have been tidied up, ready for usage
* Added these new types into the Object and PoseBone code as necessary, with freeing/adding/copying accounted for
* File IO code for the new data, including version patching to convert the old system to the new one.
* Set up the drawing system for motionpaths based on the old armature path drawing code. Armatures still draw using the old system, since the two systems use different storage systems.
* Started setting up the motionpath 'baking' code, but the core of this still needs to be coded...

Next Steps (after some semi-urgent Durian Driver changes):
* Port the ghosting/onionskinning code over too
* Finish motionpath baking code
* RNA wrapping for the new types
* Hooking up all the new code into the operators, etc.

9 years agoSmall fixes for some float literals.
Joerg Mueller [Fri, 1 Jan 2010 11:55:56 +0000 (11:55 +0000)]
Small fixes for some float literals.

9 years agoFix for plattforms that don't have M_PI in the cmath include.
Joerg Mueller [Fri, 1 Jan 2010 11:40:48 +0000 (11:40 +0000)]
Fix for plattforms that don't have M_PI in the cmath include.

9 years agoScons compiling fix fox neXyon's new-year audio commit
Joshua Leung [Fri, 1 Jan 2010 09:41:53 +0000 (09:41 +0000)]
Scons compiling fix fox neXyon's new-year audio commit

9 years agoHuge new year audio commit!
Joerg Mueller [Fri, 1 Jan 2010 05:09:30 +0000 (05:09 +0000)]
Huge new year audio commit!

* Refactored the whole audaspace library to use float as sample format over all readers.
* Added new Readers like the linear resampler, envelope, lowpass, highpass and butterworth.
* Note: The butterworth filter isn't working correctly, some bug in there... Maybe also true for the envelope.
* Added a sound to f-curve operator that behaves mostly like the soundtracker script of technoestupido.

9 years agoDopeSheet/Action Editor: Fixed operator name that did not get correctly during the...
Joshua Leung [Thu, 31 Dec 2009 23:56:45 +0000 (23:56 +0000)]
DopeSheet/Action Editor: Fixed operator name that did not get correctly during the operator renaming fixes done by Campbell's script

9 years agonetrender: edit balancing rules limits and enable/disable them from the web interface
Martin Poirier [Thu, 31 Dec 2009 19:11:46 +0000 (19:11 +0000)]
netrender: edit balancing rules limits and enable/disable them from the web interface

9 years agoBGE: negative lamp last fix - Texture Face. I'm going to commit it to 2.49 too.
Dalai Felinto [Thu, 31 Dec 2009 18:51:02 +0000 (18:51 +0000)]
BGE: negative lamp last fix - Texture Face. I'm going to commit it to 2.49 too.
The files I used for test are here: http://blenderecia.orgfree.com/blender/tmp/neg_light.zip

9 years ago- modify the baking layout to be more compact and made a bit more sense.
Campbell Barton [Thu, 31 Dec 2009 10:07:59 +0000 (10:07 +0000)]
- modify the baking layout to be more compact and made a bit more sense.
- add back quad split order option.

note: tested displacement baking and found it matches 2.4x. there is still a missing check which ignores the active object when baking selected to active but Im not sure in what cases this is needed.

9 years agoBGE bugfix: [#19476] Negative Lamps in BGE Do Not Function (in GLSL)
Dalai Felinto [Thu, 31 Dec 2009 07:17:14 +0000 (07:17 +0000)]
BGE bugfix: [#19476] Negative Lamps in BGE Do Not Function (in GLSL)
this bug was introduced in Blender 2.49 (probably my own fault, in other part of the code though while fixing support for IPOs in GLSL Lamps).

The good news is: GLSL Lamps looks in BGE like working perfectly now.

Multitexture on the other hand is not supporting "negative" lamps (with the checkbox option on).

From my search (svn blame+log) it looks like multitexture never had negative lamp working. Actually in Blender 2.34 when this was introduced in BGE (maybe in Blender as well?) I couldn't see negative lamps working either. It's hard to test this with Blender 2.34 though (it even crash with my test file).

9 years agoBGE: (1) stereo tooltip update (2) blenderplayer working with new stereo setting...
Dalai Felinto [Thu, 31 Dec 2009 04:56:23 +0000 (04:56 +0000)]
BGE: (1) stereo tooltip update (2) blenderplayer working with new stereo setting (3) blenderplayer building again (patch by Mitchell Stokes - Moguri)

(1) the new text suggest what was the default eye separation before. Now I'm confident that changing the eye separation for the UI is a good move
(2) no big deal here. It's not reading the parameter from the command line. But does it ever read it?
(3) stubs.c update and glew linking statically. patch by Mitchell Stokes, thanks for that.

And now we finish 2009 with a building blenderplayer =D

9 years agoremove python api cruft from custom operator registration
Campbell Barton [Wed, 30 Dec 2009 22:51:44 +0000 (22:51 +0000)]
remove python api cruft from custom operator registration

9 years agofix crash on baking from selected to active, however need to validate this against...
Campbell Barton [Wed, 30 Dec 2009 22:35:22 +0000 (22:35 +0000)]
fix crash on baking from selected to active, however need to validate this against 2.4x to make sure displacement for eg gives the same results

9 years agoFix crash in View -> Navigation menu (not all view3d regions have a regionview3d...
Martin Poirier [Wed, 30 Dec 2009 22:23:50 +0000 (22:23 +0000)]
Fix crash in View -> Navigation menu (not all view3d regions have a regionview3d, especially not menus. Meh, stupid work around)

9 years agoMacro registration using the normal rna registration methods (like operators).
Martin Poirier [Wed, 30 Dec 2009 22:14:32 +0000 (22:14 +0000)]
Macro registration using the normal rna registration methods (like operators).

bpy.types.register(MacroClass)

instead of

bpy.ops.add_macro(MacroClass)

The rest is unchanged.

Also remove some now unused code for the old registration methods (there's still some remaining).

9 years agopython macro operators didnt have a compatible draw function assigned. also remove...
Campbell Barton [Wed, 30 Dec 2009 20:15:28 +0000 (20:15 +0000)]
python macro operators didnt have a compatible draw function assigned. also remove duplicate define.

9 years agoScons missed include for pthread.
Thomas Dinges [Wed, 30 Dec 2009 19:55:41 +0000 (19:55 +0000)]
Scons missed include for pthread.

9 years ago- deform types for copy, arm and leg, patch from Cessen (with slighy modifications)
Campbell Barton [Wed, 30 Dec 2009 18:39:02 +0000 (18:39 +0000)]
- deform types for copy, arm and leg, patch from Cessen (with slighy modifications)
- bone.center attribute

9 years agoFix for poor negliected Makefiles.
Kent Mein [Wed, 30 Dec 2009 16:18:06 +0000 (16:18 +0000)]
Fix for poor negliected Makefiles.

Kent

9 years agoFix for [#20430] Boids options for Flying and climbing do not work
Janne Karhu [Wed, 30 Dec 2009 15:58:59 +0000 (15:58 +0000)]
Fix for [#20430] Boids options for Flying and climbing do not work
* Boids didn't yet use global gravity

9 years agofix for scons
Campbell Barton [Wed, 30 Dec 2009 15:45:41 +0000 (15:45 +0000)]
fix for scons

9 years agobake is now modal like render and updates the image view while baking.
Campbell Barton [Wed, 30 Dec 2009 14:37:25 +0000 (14:37 +0000)]
bake is now modal like render and updates the image view while baking.
it also has an exec function which doesnt update (like render too)

9 years agoFloor Constraint: Evaluation space options are now available for this constraint too
Joshua Leung [Wed, 30 Dec 2009 10:29:26 +0000 (10:29 +0000)]
Floor Constraint: Evaluation space options are now available for this constraint too

9 years ago* Assorted comments/warnings fixes for animation code
Joshua Leung [Wed, 30 Dec 2009 10:21:45 +0000 (10:21 +0000)]
* Assorted comments/warnings fixes for animation code
* Made the dotted lines drawn for markers extend all the way to the top of the relevant views
* Shortened the default names for markers

9 years agoPush Pose Tool - Quaternion Rotation fixes:
Joshua Leung [Tue, 29 Dec 2009 23:25:46 +0000 (23:25 +0000)]
Push Pose Tool - Quaternion Rotation fixes:

This commit is an attempt at improving the behaviour of the Push Pose tool (Ctrl E) when dealing with quaternion rotations. Now the delta rotation from the previous keyframe to the current pose is taken and 'added' to the current pose. This may not be the best behaviour yet, but at least there are some visible results now (compared to before, when the method used resulted in minor twitching only).

Also, fixed a number of bugs that went unnoticed for a while due to various refactors:
- quaternion rotations were broken for the pose sliding tools, since the wrong RNA path was being used
- the wrong keyframes were being picked up due to float vs ints being passed to the searching functions

9 years agommb only cancels constraint if mouse isn't moved (was broken since early 2.5 code...
Martin Poirier [Tue, 29 Dec 2009 21:20:46 +0000 (21:20 +0000)]
mmb only cancels constraint if mouse isn't moved (was broken since early 2.5 code, selection code needed to be earlier in event handling).

9 years agoBugfix for [#20511]
Martin Poirier [Tue, 29 Dec 2009 20:44:51 +0000 (20:44 +0000)]
Bugfix for [#20511]

Shift-MMB for user orientation constraint selection didn't work for global orientation (the matrix wasn't initialized properly).

Also, MMB can be used to cancel a constraint again.

9 years agoview3d orbit and rotate operators now check for rv3d viewlock in their poll functions...
Martin Poirier [Tue, 29 Dec 2009 20:11:13 +0000 (20:11 +0000)]
view3d orbit and rotate operators now check for rv3d viewlock in their poll functions (this means you can also set mmb = pan later in the keymap to pan locked views with mmb only).

9 years agoneeded for win32's msvc.
Campbell Barton [Tue, 29 Dec 2009 18:57:59 +0000 (18:57 +0000)]
needed for win32's msvc.

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