12 years agoif bone type root is defined, all new parentless bones become children of it
Campbell Barton [Wed, 9 Dec 2009 15:13:03 +0000 (15:13 +0000)]
if bone type root is defined, all new parentless bones become children of it

12 years agoVBO:
Brecht Van Lommel [Wed, 9 Dec 2009 14:37:26 +0000 (14:37 +0000)]
* Fix #19785: curves not drawing with VBO enabled
* Fix #19553: duplicate Window crashes with VBO's

The convention in Blender was to have GL_VERTEX_ARRAY and GL_NORMAL_ARRAY
enabled by default, and other arrays disabled. The VBO drawing code did
not take this into account. I've made these now disabled by default, since
that makes the code clearer in other places too.

12 years agosome more rig options, fix typo
Campbell Barton [Wed, 9 Dec 2009 14:29:55 +0000 (14:29 +0000)]
some more rig options, fix typo

12 years ago- added editbone.matrix, readonly, utility property that calculates the matrix from...
Campbell Barton [Wed, 9 Dec 2009 14:25:56 +0000 (14:25 +0000)]
- added editbone.matrix, readonly, utility property that calculates the matrix from the bone roll
- spine fixes
- arm now uses the average Z axis to place the poll target

12 years ago- use the bone that the type was set for automatic assigned blending property (when...
Campbell Barton [Wed, 9 Dec 2009 12:36:13 +0000 (12:36 +0000)]
- use the bone that the type was set for automatic assigned blending property (when blending 2 chains)
- delete the type property from the generated rig so running again wont confuse things

12 years ago- rewrote arm rig so it creates 2 chains and blend them automatically (like the leg)
Campbell Barton [Wed, 9 Dec 2009 12:00:28 +0000 (12:00 +0000)]
- rewrote arm rig so it creates 2 chains and blend them automatically (like the leg)
- use reverse order for palm fingers (pointer first)
- allow copying bone class instances to exclude some bones
- doc generation had a python error (incedently updated online docs linked from the splash)

12 years agoWhoops, silly typo
Matt Ebb [Wed, 9 Dec 2009 11:38:32 +0000 (11:38 +0000)]
Whoops, silly typo

12 years agoRNA: fix for yesterday's commit, browsing screens and scenes was
Brecht Van Lommel [Wed, 9 Dec 2009 10:55:28 +0000 (10:55 +0000)]
RNA: fix for yesterday's commit, browsing screens and scenes was
not working anymore, relies on special notifiers.

12 years agoVarious more screen-related fixes including:
Matt Ebb [Wed, 9 Dec 2009 06:55:16 +0000 (06:55 +0000)]
Various more screen-related fixes including:
[#20271] File Browser - Wont show when area is fullscreen

12 years agograbcursor attribute stores full grab mode so we can better differentiate when it...
Martin Poirier [Wed, 9 Dec 2009 04:51:35 +0000 (04:51 +0000)]
grabcursor attribute stores full grab mode so we can better differentiate when it needs to wrap around cursor draw.

Also add cocoa exception to wm_get_cursor_position (this should be fixed at the ghost level)

12 years agoFix for [#20197] dof node bugs
Matt Ebb [Wed, 9 Dec 2009 02:55:19 +0000 (02:55 +0000)]
Fix for [#20197] dof node bugs

This is still a bit dodgy, the issue of accessing scene data from nodes needs to be solved better, but this at least fixes it up to previous capabilities, and prevents writing any data to scene/objects either.

12 years agoMinor fix for missing menu
Matt Ebb [Wed, 9 Dec 2009 01:53:51 +0000 (01:53 +0000)]
Minor fix for missing menu

12 years agoFix for [#20249] duplicating a mesh in edit mode with a lattice modifier
Matt Ebb [Wed, 9 Dec 2009 01:53:04 +0000 (01:53 +0000)]
Fix for [#20249] duplicating a mesh in edit mode with a lattice modifier

Removed lattice and curve modifiers from being correctable for crazy space - it didn't work and was giving weird results.

12 years agoauto-dist working again, renamed obofs --> dyn_ofs, use_sel --> use_dyn_ofs, since...
Campbell Barton [Wed, 9 Dec 2009 00:45:50 +0000 (00:45 +0000)]
auto-dist working again, renamed obofs --> dyn_ofs, use_sel --> use_dyn_ofs, since its used by Auto-Depth too.

12 years agoreference to INDIVIDUAL_CENTERS causing error
Campbell Barton [Wed, 9 Dec 2009 00:03:18 +0000 (00:03 +0000)]
reference to INDIVIDUAL_CENTERS causing error

12 years agosplit out driver functions into its own file
Campbell Barton [Tue, 8 Dec 2009 22:35:03 +0000 (22:35 +0000)]
split out driver functions into its own file

12 years agosetting and editbone parent to NULL wasnt working
Campbell Barton [Tue, 8 Dec 2009 20:58:23 +0000 (20:58 +0000)]
setting and editbone parent to NULL wasnt working

12 years agoAttempted Bugfix: opengl preview render artifacts, was using wmPush/PopMatrix,
Brecht Van Lommel [Tue, 8 Dec 2009 19:27:30 +0000 (19:27 +0000)]
Attempted Bugfix: opengl preview render artifacts, was using wmPush/PopMatrix,
but this does not have an actual stack, so using glPush/PopMatrix instead now.

12 years agotransforming metastrips didnt move effects within them & remove warning
Campbell Barton [Tue, 8 Dec 2009 19:27:19 +0000 (19:27 +0000)]
transforming metastrips didnt move effects within them & remove warning

12 years ago2.5 User Preferences:
Thomas Dinges [Tue, 8 Dec 2009 19:08:35 +0000 (19:08 +0000)]
2.5 User Preferences:
* Massive Code Cleanup, still not "Layout Code Guidelines" conform, but much better.

* Commented out buttons that don't work yet, like translation buttons.
* Some minor shuffling around of buttons in "System" Tab. William: Feel free to modify that, still some room for improvements. :)

12 years agoAnimation System: Handling Updates
Brecht Van Lommel [Tue, 8 Dec 2009 18:28:09 +0000 (18:28 +0000)]
Animation System: Handling Updates

* Added ANIM_list_elem_update and ANIM_id_update functions to call when
  changing animation curves, which will then call the RNA property update
  functions for those curves.

  This is to replace just calling DAG_id_flush_update, that may not always
  be the right thing to do, and doesn't send proper notifiers for redraw.

  Still only used/usable when transforming in the graph editor, not sure
  how this do this with NLA for example, .. needs to be improved.

* Added function wm_data_handle_update function to contain the object
  update function, and also added scene animation update there. Actually
  it should be doing all datablocks, this makes it work for sequencer.

Joshua, do you agree this is the right direction to go in? I can revert or
change the code if you think it should be done differently. Mainly wanted
to get this working well for sequencer now.

12 years agoSequencer: comment out unimplemented operator to avoid error print.
Brecht Van Lommel [Tue, 8 Dec 2009 18:09:08 +0000 (18:09 +0000)]
Sequencer: comment out unimplemented operator to avoid error print.

12 years agoRNA functions to find keymaps in a keyconfig (from the usual idname + space or modal...
Martin Poirier [Tue, 8 Dec 2009 18:02:50 +0000 (18:02 +0000)]
RNA functions to find keymaps in a keyconfig (from the usual idname + space or modal keymaps from operator id)

12 years agoImage Paint keymap in image editor wasn't looked up with the space type.
Martin Poirier [Tue, 8 Dec 2009 17:37:31 +0000 (17:37 +0000)]
Image Paint keymap in image editor wasn't looked up with the space type.

12 years agoRNA:
Brecht Van Lommel [Tue, 8 Dec 2009 17:23:48 +0000 (17:23 +0000)]

* Property update functions no longer get context, instead they get only
  Main and Scene. The RNA api was intended to be as context-less as
  possible, since it doesn't really matter who is changing the property,
  everything that uses the property should be updated.
* There's still one exception case that use it now, screen operations
  still depend on context too much. It also revealed a few places using
  context where they shouldn't.
* Ideally Scene shouldn't be passed, but much of Blender still depends on
  it, should be dropped when we try to support multiple scene editing.

Change was planned for a while, but need this now to be able to call
update without a context pointer.

12 years ago- modify for Cessens updated spine
Campbell Barton [Tue, 8 Dec 2009 17:00:53 +0000 (17:00 +0000)]
- modify for Cessens updated spine
- Neck example didnt account for some possible problems when linking to the body
- foot IK were referencing the wrong bones
- updated some example rigs
- graph constraint arrow direction was incorrect

12 years agoslow print, only debug mode
Campbell Barton [Tue, 8 Dec 2009 16:39:00 +0000 (16:39 +0000)]
slow print, only debug mode

12 years agounwrap was unwrapping all faces rather then just the selected ones
Campbell Barton [Tue, 8 Dec 2009 15:20:57 +0000 (15:20 +0000)]
unwrap was unwrapping all faces rather then just the selected ones

12 years agominor fixes
Campbell Barton [Tue, 8 Dec 2009 14:02:06 +0000 (14:02 +0000)]
minor fixes

12 years agoSequencer:
Brecht Van Lommel [Tue, 8 Dec 2009 13:57:51 +0000 (13:57 +0000)]
* Sound strips now respect metastrips for muting. That means they
  are muted if the metastrip is muted, and don't play when located
  outside of the current metastrip.
* Operators now use notifiers instead of redraw tagging, added a
  separate notifier for selection as well, but that is not used to
  do less redraws yet.

12 years agoUI: fix trailing tooltips when deactivating window, and when opening
Brecht Van Lommel [Tue, 8 Dec 2009 13:02:03 +0000 (13:02 +0000)]
UI: fix trailing tooltips when deactivating window, and when opening
right click menu. Added window deactivate event for this.

12 years agoRNA: added common sequencer properties notifiers/updates. Still some
Brecht Van Lommel [Tue, 8 Dec 2009 12:59:21 +0000 (12:59 +0000)]
RNA: added common sequencer properties notifiers/updates. Still some
updates missing.

12 years agoOSX: print warning if Blender application is located in a path Python lib can't handl...
Damien Plisson [Tue, 8 Dec 2009 12:16:34 +0000 (12:16 +0000)]
OSX: print warning if Blender application is located in a path Python lib can't handle (bug # 20258)

OSX allow file/directory names to contain ':' (displayed as '/' in Finder), and current Python lib (3.1.1) has trouble with those when importing modules.

Added warning message to help user understand why Blender start fails in this case.

12 years agocompile python driver expressions for faster re-evaluation.
Campbell Barton [Tue, 8 Dec 2009 10:36:46 +0000 (10:36 +0000)]
compile python driver expressions for faster re-evaluation.
approx 15-25x speedup

12 years agoBGE: Add plot method to VideoTexture.ImageBuff class.
Benoit Bolsee [Tue, 8 Dec 2009 10:02:22 +0000 (10:02 +0000)]
BGE: Add plot method to VideoTexture.ImageBuff class.

Synopsis: plot(brush,width,height,x,y,mode)

The first form uses a byte array containing the brush shape.
The second form uses another ImageBuff object as a brush.
The ImageBuff object must be initialized before you can call
these methods. Use load(rgb_buffer,sizex,sizey) method to create
an image buffer of given size (with alpha channel set to 255).
The brush is plotted directly in the image buffer. The texture
is updated only when the VideoTexture.Texture parent object is
refreshed: this will download the image buffer to the GPU.

brush:  Byte array containing RGBA data to be plotted in image buffer.
        The data must be continuous in memory, organized row by row
        starting from lower left corner of the image. Each pixel is
        4 bytes representing RGBA data in that order.
width:  Horizontal size in pixels of image in brush.
height: Vertical size in pixels of the image in brush.
imgbuff:Another ImageBuff object that is used as a brush. The object
        must have been initialized first with load().
x:      Horizontal position in pixel from left side of the image buffer
        where the brush will be plotted. The brush is plotted on pixels
        positions x->x+width-1. Clipping is performed if the brush falls
        partially outside the image buffer.
y:      Vertical position in pixel from bottom side of the image buffer
        where the brush will be plotted.
mode:   Mode of drawing. Use one of the following value:
        0 : MIX
        1 : ADD
2 : SUB
        3 : MUL
        4 : LIGHTEN
        5 : DARKEN
        6 : ERASE ALPHA
        7 : ADD ALPHA
        1000 : COPY RGBA (default)
        1001 : COPY RGB
        1002 : COPY ALPHA

        Modes 0 to 7 are 'blend' modes: the brush pixels are combined
        with the image pixel in various ways. Refer to Blender documentation
        to learn more about these modes.

12 years agoOSX: Disable parallel openMP for elbeem library until a proper fix is found (currentl...
Damien Plisson [Tue, 8 Dec 2009 09:58:42 +0000 (09:58 +0000)]
OSX: Disable parallel openMP for elbeem library until a proper fix is found (currently makes fluid sim crash) (Bug# 20043)
Thx Jens Verwiebe for the investigation!

12 years ago- pyrna support for (value in array), currently only 1 dimensional arrays.
Campbell Barton [Tue, 8 Dec 2009 09:40:30 +0000 (09:40 +0000)]
- pyrna support for (value in array), currently only 1 dimensional arrays.
- use python malloc's in bpy_array.c
- automatically blending bone locations is disabled if the target bone has locked location
- neck had incorrect roll

12 years agoQuick ShapeKey Editor fix (i.e. submode of DopeSheet):
Joshua Leung [Tue, 8 Dec 2009 09:07:20 +0000 (09:07 +0000)]
Quick ShapeKey Editor fix (i.e. submode of DopeSheet):

Switching to ShapeKey Editor mode now shows the sliders again

12 years agoBGE: add hitUV property to mouse focus sensor to return UV coordinates under mouse...
Benoit Bolsee [Tue, 8 Dec 2009 08:58:24 +0000 (08:58 +0000)]
BGE: add hitUV property to mouse focus sensor to return UV coordinates under mouse pointer. Useful for texture painting. More details in PyDoc.

12 years agoBGE: fix bug in mouse button release detection
Benoit Bolsee [Tue, 8 Dec 2009 08:46:07 +0000 (08:46 +0000)]
BGE: fix bug in mouse button release detection

12 years agoImBuf: Fix bug in clipping
Benoit Bolsee [Tue, 8 Dec 2009 08:44:18 +0000 (08:44 +0000)]
ImBuf: Fix bug in clipping

12 years agoVarious changes to screen-related code, aiming to fix a few problems and usability...
Matt Ebb [Tue, 8 Dec 2009 07:12:06 +0000 (07:12 +0000)]
Various changes to screen-related code, aiming to fix a few problems and usability issues with 'temp' screen layouts.

Now, temp screens are hidden from being accessed directly, with a new 'Back to Previous' button appearing in place of the screen menu when (for example) fullscreen render image areas are present. Window type menus also get disabled here too, to prevent things from getting too mixed up.

12 years agowhite space commit (spaces -> tabs and clearing whitespace)
Campbell Barton [Tue, 8 Dec 2009 07:11:43 +0000 (07:11 +0000)]
white space commit (spaces -> tabs and clearing whitespace)

12 years agoAnimation Editors: Fixes for RNA/Python Bastardisation
Joshua Leung [Tue, 8 Dec 2009 06:32:30 +0000 (06:32 +0000)]
Animation Editors: Fixes for RNA/Python Bastardisation

Still not happy about the tight/regular-spacing imposed by the layout engine automation, but will tweak later.

12 years agoWrong argument type for zoom operator.
Martin Poirier [Tue, 8 Dec 2009 01:56:01 +0000 (01:56 +0000)]
Wrong argument type for zoom operator.

12 years agoFew small things:
Andrea Weikert [Tue, 8 Dec 2009 00:57:14 +0000 (00:57 +0000)]
Few small things:

1. MSVC 9 projectfiles update (graph_header.c, action_header.c and nla_header.c removed)

2. Fix for opening the filebrowser when saving file for the first time (untitled.blend) from file menu

3. Add CROSS effect sequence type back to menu. (Durian fix)
Note: Removed SEQ_EFFECT from rna, since this no actual sequence type, but rather used to check for the effect bit.

12 years agoFIX for #20256 New folder doesn't rename
Andrea Weikert [Mon, 7 Dec 2009 23:47:37 +0000 (23:47 +0000)]
FIX for #20256 New folder doesn't rename
Note: did some refactoring and renaming of files to make code a bit clearer there too.

Also applies solution provided by Aurel W in patch #20264, thanks for submitting the patch.

12 years agoRemove 'temp' screens hanging around in files from older 2.5 versions
Matt Ebb [Mon, 7 Dec 2009 22:29:35 +0000 (22:29 +0000)]
Remove 'temp' screens hanging around in files from older 2.5 versions

12 years agoForgot to remove these.
Elia Sarti [Mon, 7 Dec 2009 21:56:25 +0000 (21:56 +0000)]
Forgot to remove these.

12 years agoPythonazed DopeSheet and NLA editors headers UI.
Elia Sarti [Mon, 7 Dec 2009 21:51:44 +0000 (21:51 +0000)]
Pythonazed DopeSheet and NLA editors headers UI.

12 years agouse the SUM driver type to avoid adding all values on each bone.
Campbell Barton [Mon, 7 Dec 2009 20:49:12 +0000 (20:49 +0000)]
use the SUM driver type to avoid adding all values on each bone.

also avoids hitting the 255 string limit if you want to add 100's of values. eg.
>>> b05/max(0.001, [globals().update({"LOCALS":locals(), "ADD":float.__add__, "reduce":__import__("functools").reduce}), 0.0][1], max((, [LOCALS["b%.2d" % (i+1)] for i in range(5)])))

Since this more simple expression reaches the limit fairly quick...
>>> b05/max(0.001,b01+b02+b03+b04+b05)

12 years ago-noaudio option to force the sound system to None.
Martin Poirier [Mon, 7 Dec 2009 20:39:57 +0000 (20:39 +0000)]
-noaudio option to force the sound system to None.

Useful when openAL is not setup properly (*cough* pulseaudio *cough) and prevents startup.

This doesn't actually affect the userpref option, so you can set it to whatever you want, save userprefs and restart.

12 years agoSound system should only default to OpenAL if it is built (SDL if built otherwise).
Martin Poirier [Mon, 7 Dec 2009 20:38:09 +0000 (20:38 +0000)]
Sound system should only default to OpenAL if it is built (SDL if built otherwise).

12 years agoText and Console operators don't need to register themselves. (this cleans the report...
Martin Poirier [Mon, 7 Dec 2009 20:03:49 +0000 (20:03 +0000)]
Text and Console operators don't need to register themselves. (this cleans the reports quite a bit)

12 years agodriver type 'Sum'
Campbell Barton [Mon, 7 Dec 2009 19:59:04 +0000 (19:59 +0000)]
driver type 'Sum'

12 years agomissing null check from recent changes
Campbell Barton [Mon, 7 Dec 2009 19:49:14 +0000 (19:49 +0000)]
missing null check from recent changes

12 years agoParticles: bugfixes
Brecht Van Lommel [Mon, 7 Dec 2009 18:17:39 +0000 (18:17 +0000)]
Particles: bugfixes

* Don't show Apply as Shape for particle modifiers.
* Fix particles disappearing after exiting particle mode.
* Fix free edit not redrawing the 3d view.
* Fix use of uninitialized variable in layers template.

12 years agoUse custom cursor draw in transform to draw the new arrow cursors (to indicate direct...
Martin Poirier [Mon, 7 Dec 2009 18:10:11 +0000 (18:10 +0000)]
Use custom cursor draw in transform to draw the new arrow cursors (to indicate direction of motion for a particular transformations). This insures that it's drawn under the cursor and not far away when cursor is warped (rubber band still points to event location, this helps visualize too).

12 years agoCustom cursor draw function uses the real cursor position when cursor is grabbed...
Martin Poirier [Mon, 7 Dec 2009 18:08:19 +0000 (18:08 +0000)]
Custom cursor draw function uses the real cursor position when cursor is grabbed (and not the coordinates from the event). Drawing a custom cursor anywhere but on the real cursor is no good.

Also permit NULL poll function (equal to a function that always returns 1)

12 years agoFunction to access the real cursor position from Ghost (useful when cursor is grabbed...
Martin Poirier [Mon, 7 Dec 2009 18:06:37 +0000 (18:06 +0000)]
Function to access the real cursor position from Ghost (useful when cursor is grabbed and warped)

12 years agoFlag down a window when cursor is grabbed.
Martin Poirier [Mon, 7 Dec 2009 18:05:51 +0000 (18:05 +0000)]
Flag down a window when cursor is grabbed.

12 years agoParticles: child editing bugfixes
Brecht Van Lommel [Mon, 7 Dec 2009 17:55:58 +0000 (17:55 +0000)]
Particles: child editing bugfixes

* Make partial update work again for faster editing.
* Draw parents over children again, nicer for editing.
* Fix crash with remove tools & showing child particles.
* Fix children not disappearing always when setting to None.
* Fix wrong normal for last point in child path.
* Fix a python error in the hair dynamics panel.

12 years ago- bone.basename now only gets the name before the first '.', since names like finger...
Campbell Barton [Mon, 7 Dec 2009 17:21:30 +0000 (17:21 +0000)]
- bone.basename now only gets the name before the first '.', since names like finger.01.L are common
- updated delta not to remove a bone
- spine and neck rigs interpolation bones are now axis aligned to the control bone
- palm tag is expected on the pointer finger rather then the wrist
- operate on bone children first working up the chain (not essential but more pradictable)

12 years agoBugfix: WM could access freed memory when testing for click event after
Brecht Van Lommel [Mon, 7 Dec 2009 16:59:10 +0000 (16:59 +0000)]
Bugfix: WM could access freed memory when testing for click event after
opening a new file (and freeing the window and its event queue).

12 years agocrashfix, duplicating armatures with ID-Props assigned to the bones didnt copy the...
Campbell Barton [Mon, 7 Dec 2009 15:54:27 +0000 (15:54 +0000)]
crashfix, duplicating armatures with ID-Props assigned to the bones didnt copy the bone.

12 years ago- string copy without .py wasnt terminating the string
Campbell Barton [Mon, 7 Dec 2009 14:09:53 +0000 (14:09 +0000)]
- string copy without .py wasnt terminating the string
- console import autocomplete wasnt including modules defined in C like BGL, Mathutils

12 years agopep8 compliance cleanups.
Elia Sarti [Mon, 7 Dec 2009 12:11:28 +0000 (12:11 +0000)]
pep8 compliance cleanups.

12 years agoPorting of Graph Editor's UI to python, just header done for now.
Elia Sarti [Mon, 7 Dec 2009 11:50:05 +0000 (11:50 +0000)]
Porting of Graph Editor's UI to python, just header done for now.
Brecht, I added a Layout template function, template_dopesheet_filter -> uiTemplateDopeSheetFilter, this creates the group of buttons for filtering ID type (and some other options) for animation editors (Graph, NLA and Dopesheet). I hope this is all right, if not, we can move this maybe to a .py file as a function for reuse.

12 years agoTalked with Aligorith and made changes as follows to DopeSheet struct:
Elia Sarti [Mon, 7 Dec 2009 11:02:59 +0000 (11:02 +0000)]
Talked with Aligorith and made changes as follows to DopeSheet struct:
* Removed only_drivers, this is an internal flag
* Corrected notifiers

12 years ago[#20021] Non-ASCII characters on blender 2.5 alpha 0
Campbell Barton [Mon, 7 Dec 2009 10:41:16 +0000 (10:41 +0000)]
[#20021] Non-ASCII characters on blender 2.5 alpha 0
could not redo the bug on my system, fix suggested by Yomgui on blendercoders.

12 years agoFix for [#20159] Orthographic camera + viewport
Matt Ebb [Mon, 7 Dec 2009 10:40:55 +0000 (10:40 +0000)]
Fix for [#20159] Orthographic camera + viewport

Patch provided by Aurel W. Thanks!

12 years agoFix for [#20286] New objects have no Display Type
Matt Ebb [Mon, 7 Dec 2009 10:28:36 +0000 (10:28 +0000)]
Fix for [#20286] New objects have no Display Type

Removed a few more references to shaded mode

12 years agoFix for [#19541] Buttons etc that are too close to the window edge don't react to...
Matt Ebb [Mon, 7 Dec 2009 10:22:58 +0000 (10:22 +0000)]
Fix for [#19541] Buttons etc that are too close to the window edge don't react to input

12 years agoFix for [#20057] Shift F for setting brush strenght can never get to 1
Matt Ebb [Mon, 7 Dec 2009 03:37:43 +0000 (03:37 +0000)]
Fix for [#20057] Shift F for setting brush strenght can never get to 1

12 years agouse sets rather then tuples for enum/flags so you can use bitfield operators
Campbell Barton [Mon, 7 Dec 2009 02:20:55 +0000 (02:20 +0000)]
use sets rather then tuples for enum/flags so you can use bitfield operators

12 years agoAdded icons to a few RNA properties.
Elia Sarti [Mon, 7 Dec 2009 01:26:34 +0000 (01:26 +0000)]
Added icons to a few RNA properties.

12 years agoTweaks to the fading behaviour of 3d view grid subdivs, somewhat fix for
Matt Ebb [Mon, 7 Dec 2009 00:50:40 +0000 (00:50 +0000)]
Tweaks to the fading behaviour of 3d view grid subdivs, somewhat fix for
[#20246] grid subdivisionns doesn't works

12 years agorna flag PROP_ENUM_FLAG which makes rna props a tuple of enums when converted into...
Campbell Barton [Mon, 7 Dec 2009 00:16:57 +0000 (00:16 +0000)]
rna flag PROP_ENUM_FLAG which makes rna props a tuple of enums when converted into a PyObject
only used by wm.invoke_props_popup() currently

12 years agoFixed operator name typo.
Elia Sarti [Mon, 7 Dec 2009 00:11:17 +0000 (00:11 +0000)]
Fixed operator name typo.

12 years agoFinished wrapping SpaceGraph in RNA and also wrapped bDopeSheet in the process. Some...
Elia Sarti [Sun, 6 Dec 2009 22:28:59 +0000 (22:28 +0000)]
Finished wrapping SpaceGraph in RNA and also wrapped bDopeSheet in the process. Some descriptions might be slightly off, feel free to check.

12 years agoLoop cut and edge ring select only have an invoke and require view3d, so change poll...
Martin Poirier [Sun, 6 Dec 2009 17:38:39 +0000 (17:38 +0000)]
Loop cut and edge ring select only have an invoke and require view3d, so change poll function to reflect that (and not, you know, crash...).

12 years agoText change: Loopcut -> Loop Cut
Martin Poirier [Sun, 6 Dec 2009 17:36:27 +0000 (17:36 +0000)]
Text change: Loopcut -> Loop Cut

12 years agoAssorted warning and comment fixes
Joshua Leung [Sun, 6 Dec 2009 09:37:31 +0000 (09:37 +0000)]
Assorted warning and comment fixes

12 years agowm.invoke_popup(op, width, height) similar to wm.invoke_props_popup(op, event) except...
Campbell Barton [Sun, 6 Dec 2009 04:35:00 +0000 (04:35 +0000)]
wm.invoke_popup(op, width, height) similar to wm.invoke_props_popup(op, event) except it doesnt use undo/redo (UI's need to execute operators themselves)

12 years agoremove nasty hack which made StructRNA class instaces have no __dict__,
Campbell Barton [Sat, 5 Dec 2009 23:41:45 +0000 (23:41 +0000)]
remove nasty hack which made StructRNA class instaces have no __dict__,
use __slots__, it seems all the parent classes need to have slots as well for this to work.
all python defined srna classes are checked for this too

12 years agopep8 edits and fix some warnings
Campbell Barton [Sat, 5 Dec 2009 22:03:07 +0000 (22:03 +0000)]
pep8 edits and fix some warnings

12 years ago2.5 Nodes:
Thomas Dinges [Sat, 5 Dec 2009 21:54:46 +0000 (21:54 +0000)]
2.5 Nodes:
* Node listener missed "ND_SHADING_DRAW".

12 years ago2.5 Nodes:
Thomas Dinges [Sat, 5 Dec 2009 21:14:31 +0000 (21:14 +0000)]
2.5 Nodes:
* Wrapped Texture Nodes: "Blend", "Marble", "Wood", "Clouds", and "Distorted Noise", to use Texture RNA properties.
* Texture RNA properties used in these Nodes, now send an ND_NODE notifier, in addition to the general NC_TEXTURE.

12 years agofixes for automatic tests and some errors in last commit
Campbell Barton [Sat, 5 Dec 2009 20:45:51 +0000 (20:45 +0000)]
fixes for automatic tests and some errors in last commit

12 years ago[#20266] Blender starting without X11 segfaults
Martin Poirier [Sat, 5 Dec 2009 20:06:19 +0000 (20:06 +0000)]
[#20266] Blender starting without X11 segfaults

Abort when ghost x11 cannot initialize a display.

It would just crash later anyway, better to abort with a reasonable error message.

12 years agoSupport for the C Macro system in Python.
Martin Poirier [Sat, 5 Dec 2009 19:27:26 +0000 (19:27 +0000)]
Support for the C Macro system in Python.

Basic definition works like a python operator but you derive from "bpy.types.Macro" instead.
Operators are added to the macro after it has been added with "bpy.ops.add_macro" through the class method "define" which takes an operator id and returns an OperatorMacroType (new RNA type) for which properties can then be defined to be passed to the operator when run.


Using this system, it should be easy to add an operator to the console that converts selected lines into a macro or even a more generic record macro system.

12 years agosplit up metarig hierarchy evaluation and modifying the metarig into 2 steps,
Campbell Barton [Sat, 5 Dec 2009 19:26:28 +0000 (19:26 +0000)]
split up metarig hierarchy evaluation and modifying the metarig into 2 steps,
original bone names cant be changed anymore but this means the bones can be re-parented without confusing scripts that run after the rig is modified.
support for defining a bone to have multiple types and  automatically blending between 2 generated rigs

12 years agoMacros in macro didn't work correctly.
Martin Poirier [Sat, 5 Dec 2009 19:05:21 +0000 (19:05 +0000)]
Macros in macro didn't work correctly.

12 years agosimple fix [#20218] Object.is_visible() don't reflect visibility
Campbell Barton [Sat, 5 Dec 2009 14:12:06 +0000 (14:12 +0000)]
simple fix [#20218] Object.is_visible() don't reflect visibility

12 years agoBGE fix for GameLogic["post_draw"] not working with 2DFilters
Dalai Felinto [Sat, 5 Dec 2009 02:30:20 +0000 (02:30 +0000)]
BGE fix for GameLogic["post_draw"] not working with 2DFilters
(reported by Mike Pan(mpan3), it's not in the tracker)

12 years ago* enabled COLLADA for mingw. (Compiles at least with MingW GCC 3.4.2).
Nathan Letwory [Sat, 5 Dec 2009 01:24:45 +0000 (01:24 +0000)]
* enabled COLLADA for mingw. (Compiles at least with MingW GCC 3.4.2).

12 years ago* proper SSE setting for mingw.
Nathan Letwory [Sat, 5 Dec 2009 01:07:42 +0000 (01:07 +0000)]
* proper SSE setting for mingw.
* some cleanup of render module SConscript

12 years ago* provide SCons support to enabling jaguarandi SIMD raytracer optimizations for real :)
Nathan Letwory [Sat, 5 Dec 2009 00:26:20 +0000 (00:26 +0000)]
* provide SCons support to enabling jaguarandi SIMD raytracer optimizations for real :)
  Until now only SSE switches were defined, but to really enjoy the SIMD structures, the
  __SSE__ define needs to be given. This can now be done with setting in your


  (or WITH_BF_RAYOPTIMIZATION=1 on command-line)

12 years agoChanges to netrender baking operator.
Martin Poirier [Fri, 4 Dec 2009 19:13:22 +0000 (19:13 +0000)]
Changes to netrender baking operator.

Force step of 1 for full baking.

12 years agoNull check for baking progressend function
Martin Poirier [Fri, 4 Dec 2009 19:08:07 +0000 (19:08 +0000)]
Null check for baking progressend function

Simplify end of line for console progress.