blender.git
10 years agoForgot to include these files in sculpt shape key commit.
Brecht Van Lommel [Wed, 11 Nov 2009 18:31:19 +0000 (18:31 +0000)]
Forgot to include these files in sculpt shape key commit.

10 years agoFix bug #19864: edge slide factor field is wrong. Setting RNA float
Brecht Van Lommel [Wed, 11 Nov 2009 18:30:37 +0000 (18:30 +0000)]
Fix bug #19864: edge slide factor field is wrong. Setting RNA float
property non-array property as array did not work correct.

10 years agoFix bug #19762: sculpt does not work with shape keys.
Brecht Van Lommel [Wed, 11 Nov 2009 17:58:37 +0000 (17:58 +0000)]
Fix bug #19762: sculpt does not work with shape keys.

10 years ago- use double underscores to hide members in python (removes them from dir() therefor...
Campbell Barton [Wed, 11 Nov 2009 17:12:48 +0000 (17:12 +0000)]
- use double underscores to hide members in python (removes them from dir() therefor autocomp.)
- collection functions rename eg. bones_active -> bones__active, add_object -> objects__add since these should be accessed from the collections only.
- fix warnings in last commit

10 years agopython api for collection add()/remove()
Campbell Barton [Wed, 11 Nov 2009 16:28:53 +0000 (16:28 +0000)]
python api for collection add()/remove()

Added a group example
 C = bpy.context
 ob = C.active_object
 bpy.data.groups[0].objects.add(ob)

- add_to_group and rem_from_group now take optional scene and base flags and deal with updating the object & base flags
- operators that add objects to groups were setting ob->recalc= OB_RECALC_OB; looks like its not needed.
- previously add() ignored python args, now add and remove are called like any other FunctionRNA from python.
- made the pyrna api use tp_getset's for collestions active/add()/remove()

10 years agoAdded some missing theme entries and removed some unused ones.
William Reynish [Wed, 11 Nov 2009 16:27:00 +0000 (16:27 +0000)]
Added some missing theme entries and removed some unused ones.

10 years agoNodes:
Thomas Dinges [Wed, 11 Nov 2009 16:02:18 +0000 (16:02 +0000)]
Nodes:
* Added properties operator to the View menu.
* Added Notifier for Node Select Operator, so the new "Active Node" Panel gets refreshed.

10 years agoFix #19368: sculpting with subsurf modifier applied did not update correct.
Brecht Van Lommel [Wed, 11 Nov 2009 15:50:49 +0000 (15:50 +0000)]
Fix #19368: sculpting with subsurf modifier applied did not update correct.
Fix #19438: sculpt anchored + texture did not center texture correctly.

10 years agoFix #19842: timer events incorrectly cancelled tweak events, e.g. when
Brecht Van Lommel [Wed, 11 Nov 2009 15:29:22 +0000 (15:29 +0000)]
Fix #19842: timer events incorrectly cancelled tweak events, e.g. when
opening a file browser.

10 years agoFix #19834: text edit mode left/right was not work due to frame prev/next.
Brecht Van Lommel [Wed, 11 Nov 2009 14:30:12 +0000 (14:30 +0000)]
Fix #19834: text edit mode left/right was not work due to frame prev/next.

10 years agoFix #19837: filtering in file browser was missing some common
Brecht Van Lommel [Wed, 11 Nov 2009 14:05:10 +0000 (14:05 +0000)]
Fix #19837: filtering in file browser was missing some common
video file extensions.

10 years agoFix #19313: running python scripts with PyRun_File could
Brecht Van Lommel [Wed, 11 Nov 2009 13:27:54 +0000 (13:27 +0000)]
Fix #19313: running python scripts with PyRun_File could
crash on windows due to incompatible FILE struct between
Blender and python library, which is why it was not used
in 2.4x, so apply the same workaround now.

10 years agoBugfix: switching renderlayer in compositing node crashed.
Brecht Van Lommel [Wed, 11 Nov 2009 12:38:22 +0000 (12:38 +0000)]
Bugfix: switching renderlayer in compositing node crashed.

10 years agoFix for [#19781] smoke domain displayed in wire even after removed it
Matt Ebb [Wed, 11 Nov 2009 11:49:46 +0000 (11:49 +0000)]
Fix for [#19781] smoke domain displayed in wire even after removed it

Now it resets back to Shaded display, which still may not be what you want, but there's more chance of it, and it's the default.

10 years agofix for uninitialized variable when circle selecting faces in editmode. (was crashing...
Campbell Barton [Wed, 11 Nov 2009 11:29:56 +0000 (11:29 +0000)]
fix for uninitialized variable when circle selecting faces in editmode. (was crashing on release build but not debug for some reason)

10 years agoFix for [#19562] Little plus icon in upper right missing when opening files from...
Matt Ebb [Wed, 11 Nov 2009 10:59:58 +0000 (10:59 +0000)]
Fix for [#19562] Little plus icon in upper right missing when opening files from 2.49

Now add the new sub-regions to all 3d views on file open

10 years agoNodes Editor + other warning fixes:
Joshua Leung [Wed, 11 Nov 2009 10:51:40 +0000 (10:51 +0000)]
Nodes Editor + other warning fixes:
* Added 'active node' panel for the Nodes Editor. This panel, in the NKEY region, shows the settings for the active node. Included in this panel is a field used for editing the unique-name of the node too.

* Fixed a number of uninitialised vars warnings that I missed in previous commit...

10 years ago* Fix for [#19488] Small slider = hidden values
Matt Ebb [Wed, 11 Nov 2009 10:27:25 +0000 (10:27 +0000)]
* Fix for [#19488] Small slider = hidden values

Now number fields use a new method of clipping text when the available space is small:
http://vimeo.com/7545600

10 years agorecent change shows up incorrect context use: context.bone is not valid in the view3d...
Campbell Barton [Wed, 11 Nov 2009 10:07:52 +0000 (10:07 +0000)]
recent change shows up incorrect context use: context.bone is not valid in the view3d context.

10 years ago* Fixing various compiler warnings under scons+mingw. Mostly unused variables and...
Joshua Leung [Wed, 11 Nov 2009 09:59:51 +0000 (09:59 +0000)]
* Fixing various compiler warnings under scons+mingw. Mostly unused variables and functions.
* Added missing lib-linking code for Grease Pencil in nodetrees
* Uncommented some code for curve shapekeys

10 years ago[#19859] Lasso select causing Blender to crash
Campbell Barton [Wed, 11 Nov 2009 09:58:24 +0000 (09:58 +0000)]
[#19859] Lasso select causing Blender to crash
missing null check in own commit

10 years ago- In the context, EditBones and Bases were set as 'RNA_UnknownType', replaced with...
Campbell Barton [Wed, 11 Nov 2009 09:16:53 +0000 (09:16 +0000)]
- In the context, EditBones and Bases were set as 'RNA_UnknownType', replaced with propper types.
- renamed RNA_Base to RNA_ObjectBase
- only include id_data for the python api's autocomplete if it has an ID type set.

10 years ago* Fixed nodetree animation by giving nodes unique names
Matt Ebb [Wed, 11 Nov 2009 09:11:21 +0000 (09:11 +0000)]
* Fixed nodetree animation by giving nodes unique names

Now the rna path to nodes happens via the node name, which is ensured to be unique via RNA.
As part of this, the node->username string has been removed, upon renaming the node itself it takes care of making sure it's unique (like bones, constraints, etc). There's currently no interactive rename tool, but you can do it via the datablocks editor.

- plus a few notifier tweaks, using the newer NC_NODE notifier to refresh graph editor etc.

10 years agoMitchell Stokes BGE MouseWarp patch + warning fix
Campbell Barton [Wed, 11 Nov 2009 08:32:29 +0000 (08:32 +0000)]
Mitchell Stokes BGE MouseWarp patch + warning fix

[#19854] [bugfix] Fix for broken Rasterizer mouse functions
---
This patch fixes the embedded player's ability to control the mouse. For example, hiding and unhiding the mouse cursor
did not work in 2.5, nor could the mouse's position be controlled. This was because these parts still needed to be ported
to 2.5 window manager code.

10 years agoGrease Pencil for Nodes Editor:
Joshua Leung [Wed, 11 Nov 2009 08:12:54 +0000 (08:12 +0000)]
Grease Pencil for Nodes Editor:

This commit restores Grease Pencil functionality for the Nodes Editor. Grease Pencil data is now stored at the NodeTree level, which means that annotations remain with the NodeTree they were made for.

Possible TODO's:
* In future, it may be worth investigating attaching Grease Pencil data to individual nodes, to allow annotations to stay attached to nodes as they are moved
* Include the settings for the 'active node' in a panel in the new NKEY region where the Grease Pencil buttons appear.

10 years agonode warning fixes
Matt Ebb [Wed, 11 Nov 2009 06:01:42 +0000 (06:01 +0000)]
node warning fixes

10 years agoAdded compositing node support to the animation editors
Matt Ebb [Wed, 11 Nov 2009 05:03:49 +0000 (05:03 +0000)]
Added compositing node support to the animation editors

Now when nodes are keyed, they will show up in the dopesheet/graph editor/etc in a new 'Nodetree' category.

Still a major problem left, nodes need unique names in order for the rna paths to hold animation data properly...

10 years agoFixes for martin's background mode commit - now works fine here on OS X
Matt Ebb [Wed, 11 Nov 2009 04:38:37 +0000 (04:38 +0000)]
Fixes for martin's background mode commit - now works fine here on OS X

10 years agoBackground mode in more working conditions.
Martin Poirier [Wed, 11 Nov 2009 04:08:09 +0000 (04:08 +0000)]
Background mode in more working conditions.

What works:
The usual command line options for rendering.
All python scripts are loaded (which includes custom properties)
Render engines are loaded and can be used
-P to run scripts works partially: rna api works ok, not operators.

What doesn't:
Most operator calls in python. This is a problem with poll functions. (Brecht and Campbell are aware of this already)

Changes:
-d now also applied with -b (it was ignored before)
user file (.B25.blend) now also loaded in bg mode. This helps for custom paths and all.
wm is also initialized (it's needed for a lot of context calls)
Ghost, however, is not initialized.

10 years agoDebug tools: new function MEM_testN(void*)
Martin Poirier [Wed, 11 Nov 2009 03:45:26 +0000 (03:45 +0000)]
Debug tools: new function MEM_testN(void*)

returns 0 if pointer is not in memlist

10 years agoWrapped node input and output sockets in RNA.
Matt Ebb [Wed, 11 Nov 2009 02:15:09 +0000 (02:15 +0000)]
Wrapped node input and output sockets in RNA.

This allows you to set and animate the values of socket inputs and outputs, for example the value node.
It's also a step on the way to manipulating node trees via python (i.e. linking node sockets to each other).

This fixes [#19841] RGB Node in compositor not working

10 years agoActionzones (i.e. corner widgets for splitting views) were broken after the math...
Joshua Leung [Wed, 11 Nov 2009 01:32:38 +0000 (01:32 +0000)]
Actionzones (i.e. corner widgets for splitting views) were broken after the math-lib commit. Was caused by functions that got renamed to the same name but the order of arguments were different.

10 years agoFix CMake build system for Windows
Erwin Coumans [Wed, 11 Nov 2009 00:02:49 +0000 (00:02 +0000)]
Fix CMake build system for Windows
Add support for OPTION WITH_OPENCOLLADA for Windows

10 years agoNew function:
Martin Poirier [Tue, 10 Nov 2009 21:33:53 +0000 (21:33 +0000)]
New function:

void MEM_callbackmemlist(void (*func)(void*));

Will call the function passed as argument with all allocated address as parameter. Useful for debuging.

10 years agoMath Lib
Brecht Van Lommel [Tue, 10 Nov 2009 20:50:34 +0000 (20:50 +0000)]
Math Lib

* Post-conversion commit, fixing some introduced warnings.

10 years agoSplit operator internal call (for python) between invoke and exec. Only invoke needs...
Martin Poirier [Tue, 10 Nov 2009 20:44:10 +0000 (20:44 +0000)]
Split operator internal call (for python) between invoke and exec. Only invoke needs window (for event), no need to require it for exec too.

No functionality changes, except that operator called with exec when a window isn't present (say, bg mode) won't silently fail.

10 years agoMath Lib
Brecht Van Lommel [Tue, 10 Nov 2009 20:43:45 +0000 (20:43 +0000)]
Math Lib

* Convert all code to use new functions.
* Branch maintainers may want to skip this commit, and run this
  conversion script instead, if they use a lot of math functions
  in new code:
  http://www.pasteall.org/9052/python

10 years agoMath Lib
Brecht Van Lommel [Tue, 10 Nov 2009 20:40:18 +0000 (20:40 +0000)]
Math Lib

* Pre-conversion commit removing old arithb.c code, this will not compile,
  next commit fixes that.

10 years agoNULL pointer check to prevent some crash in background mode
Martin Poirier [Tue, 10 Nov 2009 20:34:35 +0000 (20:34 +0000)]
NULL pointer check to prevent some crash in background mode

10 years agoRunning with -d, python context also prints members asked from context that are present.
Martin Poirier [Tue, 10 Nov 2009 19:57:04 +0000 (19:57 +0000)]
Running with -d, python context also prints members asked from context that are present.

Also, error messages were mixed up, wrong type and not present where inversed.

10 years agoAdd Sticky was essentially a blank operator. Possibly context functions weren't aroun...
Roland Hess [Tue, 10 Nov 2009 19:54:59 +0000 (19:54 +0000)]
Add Sticky was essentially a blank operator. Possibly context functions weren't around for this one when it was first looked at. Re-attached so it works now.

10 years agoSVN maintenance.
Guillermo S. Romero [Tue, 10 Nov 2009 19:22:10 +0000 (19:22 +0000)]
SVN maintenance.

10 years agoMath Lib
Brecht Van Lommel [Tue, 10 Nov 2009 19:13:05 +0000 (19:13 +0000)]
Math Lib

* Fix remaining issues before conversion.
* Inline various vector functions, currently enabled for all platforms.
  I expect this to work in GCC/MSVC at least, if other platforms don't
  support it, #ifdef's can be added.

10 years agoFunction declaration for BPY_context_get
Martin Poirier [Tue, 10 Nov 2009 16:18:54 +0000 (16:18 +0000)]
Function declaration for BPY_context_get

10 years agofix error with python exceptions in BPy_errors_to_report
Campbell Barton [Tue, 10 Nov 2009 16:17:49 +0000 (16:17 +0000)]
fix error with python exceptions in BPy_errors_to_report

10 years agomodify the python context access so invalid names will raise an exception rather...
Campbell Barton [Tue, 10 Nov 2009 15:09:53 +0000 (15:09 +0000)]
modify the python context access so invalid names will raise an exception rather then returning None.
this way the UI scripts are less likely to fail silently and wont let typos work ok.

also allow subclassing of the context, added a copy function,
 bpy.context.copy(), returns the context as a python dict to be modified and used in python.

This also showed up an invalid brush member in the screen context.

10 years agofix for own error in active bone commit, wasnt checking object type was an armature
Campbell Barton [Tue, 10 Nov 2009 13:20:32 +0000 (13:20 +0000)]
fix for own error in active bone commit, wasnt checking object type was an armature
also fix for warning with printf

10 years agoDrag & drop implementation at GHOST level (only OSX for now)
Damien Plisson [Tue, 10 Nov 2009 12:56:46 +0000 (12:56 +0000)]
Drag & drop implementation at GHOST level (only OSX for now)

The dragging sequence is performed in four phases:

- Start sequence (GHOST_kEventDraggingEntered) that tells a drag'n'drop operation has started. Already gives the object data type, and the entering mouse location

- Update mouse position (GHOST_kEventDraggingUpdated) sent upon each mouse move until the drag'n'drop operation stops, to give the updated mouse position.
Useful to highlight a potential destination, and update the status (through GHOST_setAcceptDragOperation) telling if the object can be dropped at the current cursor position.

- Abort drag'n'drop sequence (GHOST_kEventDraggingExited) sent when the user moved the mouse outside the window.

- Send the dropped data (GHOST_kEventDraggingDropDone)

- Outside of the normal sequence, dropped data can be sent (GHOST_kEventDraggingDropOnIcon). This can happen when the user drops an object on the application icon. (Also used in OSX to pass the filename of the document the user doubled-clicked in the finder)

Note that the event handler is responsible for freeing the received data.
And the mouse position is sent directly in blender client coordinates (y=0 at bottom)

The GHOST_setAcceptDragOperation(TRUE) call must be placed before the user drops the object for it to be accepted.

Current handled data types :
- Text string
- Array of filenames (full paths)
- Bitmap image (not implemented yet)

10 years agoFix for math lib commit, had duplicate definitions of functions,
Brecht Van Lommel [Tue, 10 Nov 2009 10:24:58 +0000 (10:24 +0000)]
Fix for math lib commit, had duplicate definitions of functions,
giving build issues on some platforms.

10 years agoBugfix #19835: While playing animation, Render>Dimensions>FrameRate does not change...
Joshua Leung [Tue, 10 Nov 2009 09:50:39 +0000 (09:50 +0000)]
Bugfix #19835: While playing animation, Render>Dimensions>FrameRate does not change animation speed

The timestep used for the playback timer now gets adjusted accordingly when the frames-per-second setting gets changed during playback (i.e. in the "animation_step" operator). This is not as ideal as only updating this when the framerate setting is changed, but using an appropriate update function for this failed miserably.

10 years agoFix for [#19847] Joined meshes fail to render
Matt Ebb [Tue, 10 Nov 2009 06:29:10 +0000 (06:29 +0000)]
Fix for [#19847] Joined meshes fail to render

Join function was accessing invalid memory for material indices when no materials were originally present on the joining objects

10 years agoFix for [#19852] Animation rendering not working in new scene
Matt Ebb [Tue, 10 Nov 2009 04:56:55 +0000 (04:56 +0000)]
Fix for [#19852] Animation rendering not working in new scene

As part of this commit, I moved the scene frame_step to RenderData, where the other frame-related data is.

10 years agoFix inconsistent order in Image editor alpha display buttons
Matt Ebb [Tue, 10 Nov 2009 04:03:29 +0000 (04:03 +0000)]
Fix inconsistent order in Image editor alpha display buttons

10 years agoFix for [#19855] Color Ramp Interpolation is not working
Matt Ebb [Tue, 10 Nov 2009 04:02:44 +0000 (04:02 +0000)]
Fix for [#19855] Color Ramp Interpolation is not working

10 years ago* Finished (well, almost ;) RNA wrapping and layout-engine-ing all the nodes.
Matt Ebb [Tue, 10 Nov 2009 04:01:44 +0000 (04:01 +0000)]
* Finished (well, almost ;) RNA wrapping and layout-engine-ing all the nodes.

Still a few quirks, including redraw issues on multilayer image input nodes, but it's pretty much there.
Would also be good to wrap the input/output sockets, too, will check on it.

This fixes bug [#19740] INPUT NODE: Cannot load images / motion pictures

10 years ago* Small UI drawing tweaks, part of it allowing a bit of extra space for text in numbe...
Matt Ebb [Tue, 10 Nov 2009 03:48:02 +0000 (03:48 +0000)]
* Small UI drawing tweaks, part of it allowing a bit of extra space for text in number fields

10 years agoBugfixes for Armatures, SplineIK, and F-Curve RNA:
Joshua Leung [Mon, 9 Nov 2009 23:41:48 +0000 (23:41 +0000)]
Bugfixes for Armatures, SplineIK, and F-Curve RNA:
* Fixed the handling of the 'draw_active' flag for drawing of armatures. This is now cleared from bones in old files (so one bone always got represented as active in the viewport even when others were selected), and the flag is correctly set temporarily when drawing the bones (only one place had been done).

* Fixed typo with SplineIK that was making the root bone of the bone chains always be ignored. Similar functionality can come back at some point, but in a more useful form.

* Shortened the UI names for the F-Curve colouring modes to increase readability. The old ones were too long to be able to distinguish between entries in the UI.

10 years agoDon't free Context from python.
Martin Poirier [Mon, 9 Nov 2009 23:33:56 +0000 (23:33 +0000)]
Don't free Context from python.

There might be a better way to do this, Cambo, please check.

This solves the Totblock == -1 error

10 years agoMath Lib Reorganization
Brecht Van Lommel [Mon, 9 Nov 2009 22:42:41 +0000 (22:42 +0000)]
Math Lib Reorganization

* New header and source files.
* Still need a few tweaks before switching code to use them.

10 years agouse armature active bone as a pointer rather then a flag for each bone that needs...
Campbell Barton [Mon, 9 Nov 2009 21:03:54 +0000 (21:03 +0000)]
use armature active bone as a pointer rather then a flag for each bone that needs looking up.
- rna vars arm.bones.active & rna.edit_bones.active
- needed special undo support.
- readfile.c loads.
- duplicate and copy_armature support.
- keep the draw flag, renamed to BONE_DRAW_ACTIVE, only use for openGL drawing.

Note: it may be better to allow active/unselected as with objects.

10 years agoAdd FFTW3 support to Makefiles, make OpenJpeg use OS lib for Linux.
Guillermo S. Romero [Mon, 9 Nov 2009 20:08:19 +0000 (20:08 +0000)]
Add FFTW3 support to Makefiles, make OpenJpeg use OS lib for Linux.
And handful of whitespace clean ups.

10 years agofix for running datatoc on files in a subdir (was adding slashes into the C variable...
Campbell Barton [Mon, 9 Nov 2009 20:03:59 +0000 (20:03 +0000)]
fix for running datatoc on files in a subdir (was adding slashes into the C variable name)

10 years agoUpdate of older commit (23102) from Bob Holcomb -- fix for Darken mode blending was...
Roland Hess [Mon, 9 Nov 2009 19:20:48 +0000 (19:20 +0000)]
Update of older commit (23102) from Bob Holcomb -- fix for Darken mode blending was only in place for nodes, not for general texture blending. This updates texture blending to reflect the fix. Now results don't trend toward black on Darken anymore as factor approaches 0.

10 years ago- scons fix for linux build
Damien Plisson [Mon, 9 Nov 2009 18:32:59 +0000 (18:32 +0000)]
- scons fix for linux build

10 years agoMac :
Damien Plisson [Mon, 9 Nov 2009 17:52:13 +0000 (17:52 +0000)]
Mac :
- scons update to build with openCollada

- scons & cmake update for render optimization cflags

10 years ago- fix Cocoa window setOrder function to maintain focus on a blender window (e.g....
Damien Plisson [Mon, 9 Nov 2009 17:06:48 +0000 (17:06 +0000)]
- fix Cocoa window setOrder function to maintain focus on a blender window (e.g. ensure the blender window gets the focus when the user presses ESC to move back the render window)

- QuickTime export fixes.
Note that QuickTime export still crashes because it tries to open a "codec settings" dialog from the rendering background thread (and not the main/UI thread).
One quick fix may be to move the movie export initialization out of the render thread back into the operator function.
But a cleaner way would be to get rid of such a carbon/win32 dialog and place the codec settings inside blender interface
(additional fields in the output panel as it is currently the case for other file formats ?).

10 years agomaterial shader curve factor (same as compo node)
Campbell Barton [Mon, 9 Nov 2009 16:00:12 +0000 (16:00 +0000)]
material shader curve factor (same as compo node)

10 years ago* Fixing tooltips: "ratraced" > "raytraced". Patch by Oxben on mailing list. Thanks.
Thomas Dinges [Mon, 9 Nov 2009 13:55:04 +0000 (13:55 +0000)]
* Fixing tooltips: "ratraced" > "raytraced". Patch by Oxben on mailing list. Thanks.

10 years agoworkaround for crash when dragging nodes
Campbell Barton [Mon, 9 Nov 2009 11:15:49 +0000 (11:15 +0000)]
workaround for crash when dragging nodes

10 years agosimple fix, still worked on my PC somehow
Campbell Barton [Mon, 9 Nov 2009 09:16:16 +0000 (09:16 +0000)]
simple fix, still worked on my PC somehow

10 years ago- added particle select_inverse
Campbell Barton [Mon, 9 Nov 2009 08:51:34 +0000 (08:51 +0000)]
- added particle select_inverse
- added select root/tip to the select menu
- selection drawing updates for select more/less were not working

10 years agoOpenGL grease pencil render
Campbell Barton [Mon, 9 Nov 2009 08:03:43 +0000 (08:03 +0000)]
OpenGL grease pencil render

Algorith: needed to add some functions since offscreen render doesn't have a context pointer
 - draw_gpencil_3dview_ext
 - gpencil_data_get_active_v3d

10 years agoFixed this startup crash on windows:
Robin Allen [Sun, 8 Nov 2009 21:33:43 +0000 (21:33 +0000)]
Fixed this startup crash on windows:

- cd to blender dir
- type 'blender'
- crash

10 years ago*Small tooltip fix for strand start/end.
Thomas Dinges [Sun, 8 Nov 2009 17:58:06 +0000 (17:58 +0000)]
*Small tooltip fix for strand start/end.

10 years agoSequencer: (small Durian wish)
Andrea Weikert [Sun, 8 Nov 2009 15:03:10 +0000 (15:03 +0000)]
Sequencer: (small Durian wish)
* new operator: set rendersize (SEQUENCE_OT_rendersize) sets the render output size in the current scene to the size of the active sequence strip
* works for movies and images right now
* TODO: currently only works if image or movie strip has been loaded (as in showing the preview for example) - reason is that otherwise the size is not initialized in the strip

10 years agouse the cwd for the shell prompt, use subprocess.getstatusoutput rather then popen()
Campbell Barton [Sun, 8 Nov 2009 12:35:37 +0000 (12:35 +0000)]
use the cwd for the shell prompt, use subprocess.getstatusoutput rather then popen()

10 years agosupport much longer prompts for the console
Campbell Barton [Sun, 8 Nov 2009 11:33:01 +0000 (11:33 +0000)]
support much longer prompts for the console

10 years ago* Removed "Lock" Prefix from items inside Transform Lock Panel for consistency.
Thomas Dinges [Sun, 8 Nov 2009 11:07:00 +0000 (11:07 +0000)]
* Removed "Lock" Prefix from items inside Transform Lock Panel for consistency.
* Code cleanup to match guidelines, we don't use subrow1 or so anymore, remember? :)

10 years agoNodes:
Thomas Dinges [Sun, 8 Nov 2009 10:20:03 +0000 (10:20 +0000)]
Nodes:
* Slight offset tweak for Node header icons, not so cluttered now.

10 years agoMSVC 9 projectfiles
Andrea Weikert [Sun, 8 Nov 2009 10:07:37 +0000 (10:07 +0000)]
MSVC 9 projectfiles
* small maintenance: rna_fcurve_api.c added

10 years agoGraph Editor Drawing Tweaks:
Joshua Leung [Sun, 8 Nov 2009 06:43:08 +0000 (06:43 +0000)]
Graph Editor Drawing Tweaks:
* When there is only a single keyframe for a F-Curve, the handles aren't shown anymore. This looks nicer than the fat orange blobs that appeared
* Tweaked the management of GL_BLEND when drawing animation channels in the Graph Editor in an attempt to fix some of the missing text drawn issues.
* Converted the properties panel to use layout engine + added color selectors

10 years agobpy/rna api class feature
Campbell Barton [Sun, 8 Nov 2009 01:13:19 +0000 (01:13 +0000)]
bpy/rna api class feature
- python defined classes will be used when available (otherwise automaically generated metaclasses are made as before)
- use properties rather then functions for python defined rna class's
- call the classes getattr AFTER doing an RNA lookup, avoids setting and clearing exceptions for most attribute lookups, tested UI scripts are ~25% faster.
- extending rna py classes this way is a nicer alternative to modifying the generated metaclasses in place.

Example class

--- snip
class Object(bpy.types.ID):

    def _get_children(self):
        return [child for child in bpy.data.objects if child.parent == self]

    children = property(_get_children)
--- snip

The C initialization function looks in bpy_types.py for classes matching RNA structure names, using them when available.
This means all objects in python will be instances of these classes.
Python properties/funcs defined in ID py class will also be available for subclasses for eg. (Group Mesh etc)

10 years agopedantic enum string consistancy
Campbell Barton [Sat, 7 Nov 2009 22:12:03 +0000 (22:12 +0000)]
pedantic enum string consistancy

10 years agopep8 whitespace commit
Campbell Barton [Sat, 7 Nov 2009 22:07:46 +0000 (22:07 +0000)]
pep8 whitespace commit
bpy/rna api (no functionality change, just move getting the srna py base into a function)

10 years agofluid cache need a +1 offset, their frame 0 is blender frame 1 (fun stuff)
Martin Poirier [Sat, 7 Nov 2009 17:47:54 +0000 (17:47 +0000)]
fluid cache need a +1 offset, their frame 0 is blender frame 1 (fun stuff)

10 years agoMerge -c 24393 (patch by Jan) from COLLADA branch.
Arystanbek Dyussenov [Sat, 7 Nov 2009 14:34:04 +0000 (14:34 +0000)]
Merge -c 24393 (patch by Jan) from COLLADA branch.

10 years agomissed committing this file (from Stani's patch)
Campbell Barton [Sat, 7 Nov 2009 14:17:49 +0000 (14:17 +0000)]
missed committing this file (from Stani's patch)

10 years ago- added console language type
Campbell Barton [Fri, 6 Nov 2009 23:53:40 +0000 (23:53 +0000)]
- added console language type
- separated python console from the interactive console
- added shell console type (simple example)
- console types are autodetected and can be selected in the menu

10 years ago- modal keymap for border select
Campbell Barton [Fri, 6 Nov 2009 22:51:08 +0000 (22:51 +0000)]
- modal keymap for border select
- revert circle select keys adjustments & view navigation while selecting (durian guys liked but allowed activating multiple circle select's at once)

10 years agoapi changes suggested by Stani
Campbell Barton [Fri, 6 Nov 2009 22:42:15 +0000 (22:42 +0000)]
api changes suggested by Stani

10 years agoFix for transform orientation fix, probably forgot to commit this?
Brecht Van Lommel [Fri, 6 Nov 2009 22:10:08 +0000 (22:10 +0000)]
Fix for transform orientation fix, probably forgot to commit this?

10 years agoBugfix: crash in posemode transform buttons with no active pose bone.
Brecht Van Lommel [Fri, 6 Nov 2009 21:41:07 +0000 (21:41 +0000)]
Bugfix: crash in posemode transform buttons with no active pose bone.

10 years agoMake orientation matrix access function public.
Martin Poirier [Fri, 6 Nov 2009 21:31:14 +0000 (21:31 +0000)]
Make orientation matrix access function public.

Fix bug in previous code: passing 3x3 matrix to a function expecting a 4x4 (warnings are for something)

10 years ago* Added "Align View to Selected" to the View > Align View menu.
Thomas Dinges [Fri, 6 Nov 2009 21:10:45 +0000 (21:10 +0000)]
* Added "Align View to Selected" to the View > Align View menu.
Patch by Jeff Doyle (nfz). Thanks!

10 years agoB.blend.c update. Only change is that brushes and panels are not saved, so
Brecht Van Lommel [Fri, 6 Nov 2009 14:46:07 +0000 (14:46 +0000)]
B.blend.c update. Only change is that brushes and panels are not saved, so
that they will be recreated with defaults settings/order.

10 years agoexperemental durian request, allow view manipulation while using circle select
Campbell Barton [Fri, 6 Nov 2009 12:43:20 +0000 (12:43 +0000)]
experemental durian request, allow view manipulation while using circle select

10 years ago- removing the last particle system now exits particle edit mode.
Campbell Barton [Fri, 6 Nov 2009 12:27:28 +0000 (12:27 +0000)]
- removing the last particle system now exits particle edit mode.
- py UI script used an undeclared variable

10 years agoDriver Scripting:
Joshua Leung [Fri, 6 Nov 2009 11:09:04 +0000 (11:09 +0000)]
Driver Scripting:

Added RNA functions for adding and removing Driver Targets. Unfortunately, I couldn't do this by simply adding callbacks for the add/remove of the collection, as I've had to add to extra RNA functions to do that.

Example usage - driving Lamp Distance with Cube LocZ:
myOb= bpy.data.objects["Lamp"]
myOb.driver_add("data.distance")

# drivers is list of F-Curves that have driver data
drivers= myOb.animation_data.drivers
distDriver= drivers[0].driver

dtar= distDriver.add_target("ctrl1")
dtar.id_type= 'OBJECT'
dtar.id= bpy.data.objects["Cube"]
dtar.rna_path= "location"
dtar.array_index= 2

10 years agobring back align to view to object
Campbell Barton [Fri, 6 Nov 2009 10:38:00 +0000 (10:38 +0000)]
bring back align to view to object
- In 2.4x this was numpad *, however that would only align on the Z axis.
- New behavior for VIEW3D_OT_viewnumpad, holding Shift with Numpad 1/3/7 sets the left/top/front etc on the normal axis.
- Uses active bone, face, edge, vert, curve handel & object (just like the view manipulator with 'Normal' selected).

10 years agopatch from Stani, support for function arguments in autocomplete
Campbell Barton [Fri, 6 Nov 2009 08:53:07 +0000 (08:53 +0000)]
patch from Stani, support for function arguments in autocomplete