blender-staging.git
8 years agomove bmesh painting code into its own function, trunk has vpaint_paint_face(), this...
Campbell Barton [Sun, 15 Jan 2012 10:48:39 +0000 (10:48 +0000)]
move bmesh painting code into its own function, trunk has vpaint_paint_face(), this adds vpaint_paint_poly() which does the same thing.

8 years agosvn merge ^/trunk/blender -r43381:43392
Campbell Barton [Sun, 15 Jan 2012 10:33:41 +0000 (10:33 +0000)]
svn merge ^/trunk/blender -r43381:43392

8 years agoFixed typo in a tooltip
Sergey Sharybin [Sun, 15 Jan 2012 09:20:29 +0000 (09:20 +0000)]
Fixed typo in a tooltip

8 years agosvn merge ^/trunk/blender -r43345:43381
Campbell Barton [Sun, 15 Jan 2012 09:16:39 +0000 (09:16 +0000)]
svn merge ^/trunk/blender -r43345:43381

8 years agomodify the weight paint and vcol functions not to modify the color in place and inste...
Campbell Barton [Sun, 15 Jan 2012 07:46:59 +0000 (07:46 +0000)]
modify the weight paint and vcol functions not to modify the color in place and instead return a new color.

also fix for error in last commit, the brushes alpha wasnt set for weight paint info struct.

8 years agovertex/weight paint
Campbell Barton [Sun, 15 Jan 2012 07:15:15 +0000 (07:15 +0000)]
vertex/weight paint
- store brush_alpha() result so it doesnt need to be called for each vertex when paitning.
- use _pressure suffix rather then _final to show the pressure has been applied.
- weight paint was needlessly calculateing the test weight when multipaint was enabled.

8 years agominor cleanup to weightpaint code, move color & weight blending into own function...
Campbell Barton [Sun, 15 Jan 2012 06:29:08 +0000 (06:29 +0000)]
minor cleanup to weightpaint code, move color & weight blending into own function (was duplicated), also add enum for vpaint blend modes.

8 years agoFix all remaining unified paint settings uses of current Scene.
Nicholas Bishop [Sat, 14 Jan 2012 23:54:51 +0000 (23:54 +0000)]
Fix all remaining unified paint settings uses of current Scene.

Things like brush size and strength accessors now take a scene
parameter rather than guessing about which Scene's unified paint
settings to use.

Setting the size/strength through RNA can now be done separately for
the brush or the UnifiedPaintSettings.

The UI python code required updating to check whether the
size/strength controls should use brush or UnifiedPaintSettings RNA.

Radial control also required some updates to switch between the two
RNA sources.

8 years agoFix [#29894] Selection in sequence editor does not de-select other strips
Bastien Montagne [Sat, 14 Jan 2012 22:59:51 +0000 (22:59 +0000)]
Fix [#29894] Selection in sequence editor does not de-select other strips

Another bunch of fixes for select keymaps (sequencer, node, nla, graph, action).

8 years agoOoops ! Small error in previous own commit :/
Bastien Montagne [Sat, 14 Jan 2012 21:41:13 +0000 (21:41 +0000)]
Ooops ! Small error in previous own commit :/

8 years agoFix [#29891] Stupid select all behaviour.
Bastien Montagne [Sat, 14 Jan 2012 21:19:41 +0000 (21:19 +0000)]
Fix [#29891] Stupid select all behaviour.

More "Reset ops properties" stuff, in select C keymaps this time.

Also ARMATURE_OT_select_inverse -> ARMATURE_OT_select_all(action='INVERT'). Left the select_inverse op code, though, it’s not using the same algo as INVERT of select_all ???

8 years agofix for weight paint when the mirror vertex was allocated (would free the original...
Campbell Barton [Sat, 14 Jan 2012 18:52:34 +0000 (18:52 +0000)]
fix for weight paint when the mirror vertex was allocated (would free the original verts weight).

was an error in own recent commit.

8 years agofix [#29887] Alt + g in a node group results in crash
Campbell Barton [Sat, 14 Jan 2012 18:11:45 +0000 (18:11 +0000)]
fix [#29887] Alt + g in a node group results in crash

8 years agofix [#29889] Simple Deform: Missing lock x/y axis option
Campbell Barton [Sat, 14 Jan 2012 18:07:09 +0000 (18:07 +0000)]
fix [#29889] Simple Deform: Missing lock x/y axis option

8 years agofix [#29890] Extend selection doesn't clear (3D view edge loop select and node editor...
Campbell Barton [Sat, 14 Jan 2012 17:56:44 +0000 (17:56 +0000)]
fix [#29890] Extend selection doesn't clear (3D view edge loop select and node editor node select)

caused by own use-last-settings, will be more of these, need to go over all keymaps.

8 years agoadd utility function to BLI_math_color - rgb_to_luma, rgb_to_luma_byte, also use...
Campbell Barton [Sat, 14 Jan 2012 17:14:23 +0000 (17:14 +0000)]
add utility function to BLI_math_color - rgb_to_luma, rgb_to_luma_byte, also use rgb_to_grayscale in more places.

8 years agoreplace operator to toggle handles with generic wm operator
Campbell Barton [Sat, 14 Jan 2012 16:26:08 +0000 (16:26 +0000)]
replace operator to toggle handles with generic wm operator

8 years agoreplace ANIM_OT_time_toggle operator with generic WM_OT_context_toggle operator
Campbell Barton [Sat, 14 Jan 2012 14:17:12 +0000 (14:17 +0000)]
replace ANIM_OT_time_toggle operator with generic WM_OT_context_toggle operator

8 years agoremove api from addon bl_info, was never used.
Campbell Barton [Sat, 14 Jan 2012 13:02:20 +0000 (13:02 +0000)]
remove api from addon bl_info, was never used.

8 years agoadjust view3d api function for getting user region to also return view3d since most...
Campbell Barton [Sat, 14 Jan 2012 12:24:25 +0000 (12:24 +0000)]
adjust view3d api function for getting user region to also return view3d since most callers need this too.

8 years ago- opengl render in quadview wasn't using camera.
Campbell Barton [Sat, 14 Jan 2012 11:21:00 +0000 (11:21 +0000)]
- opengl render in quadview wasn't using camera.
- minor change to FTOCHAR use.

8 years agoensure functions are not used within FTOCHAR macro since they run 2-3 times.
Campbell Barton [Sat, 14 Jan 2012 10:33:16 +0000 (10:33 +0000)]
ensure functions are not used within FTOCHAR macro since they run 2-3 times.

brushes were doing curve lookups within this macro for example.

8 years agotag unused function args in raytrace code.
Campbell Barton [Sat, 14 Jan 2012 10:08:47 +0000 (10:08 +0000)]
tag unused function args in raytrace code.

8 years agoFix UV Editor selection (due to bug #29875, "extend" was no more reset when using...
Bastien Montagne [Sat, 14 Jan 2012 08:59:11 +0000 (08:59 +0000)]
Fix UV Editor selection (due to bug #29875, "extend" was no more reset when using keymap).

Yet I wonder how much of these remain (and why some, like e.g. selection in 3D views, did not have that problem)… This is a bit fuzzy, imho.

8 years agofix for own error making button outlines darker.
Campbell Barton [Sat, 14 Jan 2012 07:46:21 +0000 (07:46 +0000)]
fix for own error making button outlines darker.

8 years agomake sequencer use standard select operator with action property, remove select_inver...
Campbell Barton [Sat, 14 Jan 2012 07:23:57 +0000 (07:23 +0000)]
make sequencer use standard select operator with action property, remove select_inverse operator.

8 years agoremove *.select_inverse operators where the *.select_all operator has an invert option.
Campbell Barton [Sat, 14 Jan 2012 06:58:03 +0000 (06:58 +0000)]
remove *.select_inverse operators where the *.select_all operator has an invert option.

8 years agofix own bug [#29875] Due to operators now reusing there last-used settings, some...
Campbell Barton [Sat, 14 Jan 2012 06:30:27 +0000 (06:30 +0000)]
fix own bug [#29875] Due to operators now reusing there last-used settings, some UI options are more or less broken (esp. in shortcuts and menu entries)

also prefer *.select_all rather then *.select_inverse operators, since this is an option for select_all.

8 years agouse single property lookups in transform operator initialization & fix error with...
Campbell Barton [Sat, 14 Jan 2012 04:42:41 +0000 (04:42 +0000)]
use single property lookups in transform operator initialization & fix error with last-settings, so texture translate doesn't apply to the grab key.

8 years agotheme settings - split space and space list into their own RNA members, display with...
Campbell Barton [Sat, 14 Jan 2012 03:24:41 +0000 (03:24 +0000)]
theme settings - split space and space list into their own RNA members, display with own heading in userprefs.

8 years agoFix #29879: ctrl+B border select with handles in the graph editor not selecting
Brecht Van Lommel [Fri, 13 Jan 2012 17:25:24 +0000 (17:25 +0000)]
Fix #29879: ctrl+B border select with handles in the graph editor not selecting
the right keys/handles.

8 years agoGroup DEM node code with the rest of the mattes, rather than the filters. Also fixes...
Peter Larabell [Fri, 13 Jan 2012 16:00:24 +0000 (16:00 +0000)]
Group DEM node code with the rest of the mattes, rather than the filters. Also fixes two typos in DEM node comments.

8 years agoFix #29878: running bpy.ops.render.opengl() from console not starting new line
Brecht Van Lommel [Fri, 13 Jan 2012 15:35:36 +0000 (15:35 +0000)]
Fix #29878: running bpy.ops.render.opengl() from console not starting new line
or printing output.

8 years agoBugfix: Editing baked cache in particle mode for Softbody and Cloth now shows changes...
Daniel Genrich [Fri, 13 Jan 2012 15:14:08 +0000 (15:14 +0000)]
Bugfix: Editing baked cache in particle mode for Softbody and Cloth now shows changes in 3dview without having to exit + enter editmode.

8 years agoFix quicktime issue in last commit that moved settings into own RNA struct.
Brecht Van Lommel [Fri, 13 Jan 2012 14:56:51 +0000 (14:56 +0000)]
Fix quicktime issue in last commit that moved settings into own RNA struct.

8 years agoFix #29873: transform with individual origins not working in edge select mode.
Brecht Van Lommel [Fri, 13 Jan 2012 14:56:41 +0000 (14:56 +0000)]
Fix #29873: transform with individual origins not working in edge select mode.

8 years agoMove FFmpeg and QuickTime settings to own structure inside RenderSettings
Sergey Sharybin [Fri, 13 Jan 2012 12:34:41 +0000 (12:34 +0000)]
Move FFmpeg and QuickTime settings to own structure inside RenderSettings
rather than making all properties have ffmpeg_ and quicktime_ prefixes

8 years agoAdded Lossless Output option for h264 codec.
Sergey Sharybin [Fri, 13 Jan 2012 12:34:23 +0000 (12:34 +0000)]
Added Lossless Output option for h264 codec.

This will fix #26943: render image to video problem

8 years agofix for error comparing py-struct members
Campbell Barton [Fri, 13 Jan 2012 11:36:32 +0000 (11:36 +0000)]
fix for error comparing py-struct members

if 2 pyrna structs used the same pointer they could incorrectly compare as true, this caused an error in theme saving because an item could match its parent and stop writing (to prevent recursive writing of same data).

eg:
  context.user_preferences.themes[0].user_interface.wcol_regular == context.user_preferences.themes[0].user_interface

8 years agoadding metaballs and lamps in local mode was broken.
Campbell Barton [Fri, 13 Jan 2012 10:14:48 +0000 (10:14 +0000)]
adding metaballs and lamps in local mode was broken.

8 years agoalpha value for button triangles ignored the alpha value (was no way to change alpha...
Campbell Barton [Fri, 13 Jan 2012 09:26:06 +0000 (09:26 +0000)]
alpha value for button triangles ignored the alpha value (was no way to change alpha of `Tick` in boolean option button).

8 years agoFix #29824: Error writing frame if 3D scene starts after first frame of animation...
Sergey Sharybin [Fri, 13 Jan 2012 09:20:13 +0000 (09:20 +0000)]
Fix #29824: Error writing frame if 3D scene starts after first frame of animation and output is H264

Issue was caused by incorrectly set PTS value frames came form Scene strip renderer.
This value used to be calculated from RenderData current and start frame which
lead to non-uniformuly counting which totally confuses encoder.

Switch append_avi and append_ffmpeg to use current frame from rendering scene
(which was already passing to this functions and was used mostly for logging)
and start frame of rendering scene (it's new parameter added). This allowed to
calculate correct PTS value easily and get rid of global static sframe variable
in writeavi.c file.

8 years agobge api doc update
Dalai Felinto [Fri, 13 Jan 2012 08:58:12 +0000 (08:58 +0000)]
bge api doc update
bge.texture materialId wasn't showing up
bge.type was outdated (I removed the glew example, I hope no one mind)

8 years agofix for weight paint wire draw leaving GL_BLEND enabled (made pose bones draw with...
Campbell Barton [Fri, 13 Jan 2012 08:38:26 +0000 (08:38 +0000)]
fix for weight paint wire draw leaving GL_BLEND enabled (made pose bones draw with low alpha)

8 years agosvn merge ^/trunk/blender -r43338:43345
Campbell Barton [Fri, 13 Jan 2012 08:28:51 +0000 (08:28 +0000)]
svn merge ^/trunk/blender -r43338:43345

8 years ago'uw' was used in weight paint code for previous deform weight, renamed to 'dw_prev'
Campbell Barton [Fri, 13 Jan 2012 08:18:22 +0000 (08:18 +0000)]
'uw' was used in weight paint code for previous deform weight, renamed to 'dw_prev'

8 years agogive a more useful error when attempting to opengl render in background mode.
Campbell Barton [Fri, 13 Jan 2012 06:59:16 +0000 (06:59 +0000)]
give a more useful error when attempting to opengl render in background mode.
add some tips to the python docs.

8 years agorename 'MultiLayer' to 'OpenEXR MultiLayer'
Campbell Barton [Fri, 13 Jan 2012 06:58:15 +0000 (06:58 +0000)]
rename 'MultiLayer' to 'OpenEXR MultiLayer'

8 years agofix [#29832] Weightpainting with "x-mirror" and "auto normalize" fails for center...
Campbell Barton [Fri, 13 Jan 2012 05:52:34 +0000 (05:52 +0000)]
fix [#29832] Weightpainting with "x-mirror" and "auto normalize" fails for center bones

normalize function simply wasn't called on the mirror vertex.

also fix 3 other bugs / inconsistencies

* when mirror is enabled, center verts get themselves as the mirror vertex, wpaint code didn't check for this case, mirroring the vertex to it self (would work, but unneeded).
* normalizing after painting would scale the active weight too, now keep the painted weight and adjust others when normalizing.
* VP_ONLYVGROUP wasn't respected for mirror (mirror vertex group would always be added).

8 years agoanother minor weightpaint change, dont pass do_auto_normalize as a bool arg to do_wei...
Campbell Barton [Fri, 13 Jan 2012 02:25:15 +0000 (02:25 +0000)]
another minor weightpaint change, dont pass do_auto_normalize as a bool arg to do_weight_paint_normalize_all(), just check before calling.

8 years agominor edits to main weight paint function for better readability - do_weight_paint_ve...
Campbell Barton [Fri, 13 Jan 2012 02:17:29 +0000 (02:17 +0000)]
minor edits to main weight paint function for better readability - do_weight_paint_vertex(), no functional changes.

8 years agosvn merge ^/trunk/blender -r43294:43338
Campbell Barton [Fri, 13 Jan 2012 01:39:57 +0000 (01:39 +0000)]
svn merge ^/trunk/blender -r43294:43338

8 years agoRemove vestigial retopo/retopo-paint code.
Nicholas Bishop [Thu, 12 Jan 2012 22:12:07 +0000 (22:12 +0000)]
Remove vestigial retopo/retopo-paint code.

8 years agoFix some RNA/scene issuess with unified paint settings.
Nicholas Bishop [Thu, 12 Jan 2012 21:48:08 +0000 (21:48 +0000)]
Fix some RNA/scene issuess with unified paint settings.

Added RNA for the unified paint setting flags that matches the Brush
RNA. Fixed the getter/setter functions to avoid guessing which Scene's
UnifiedPaintSetting to use. The getter functions take a Scene pointer
now, the setter functions are removed in favor of a more explicit
approach through RNA:

Rather than RNA choosing whether a property's value is in the Brush or
in the UnifiedPaintSettings, there are now explicit properties for
both. The UI code has been modified accordingly to switch the toggle
buttons between affecting the Brush and the UnifiedPaintSettings.

8 years agoFix related to #29694: quicktime export was not showing or respecting RGBA
Brecht Van Lommel [Thu, 12 Jan 2012 21:10:46 +0000 (21:10 +0000)]
Fix related to #29694: quicktime export was not showing or respecting RGBA
option even though some movie formats support alpha.

8 years agoFix ##29803: cycles image texture node refresh issue with image editor.
Brecht Van Lommel [Thu, 12 Jan 2012 21:10:30 +0000 (21:10 +0000)]
Fix ##29803: cycles image texture node refresh issue with image editor.

8 years agoFixing FreeBSD x64 build
Sergey Sharybin [Thu, 12 Jan 2012 19:38:08 +0000 (19:38 +0000)]
Fixing FreeBSD x64 build

Patch by Shane Ambler, thanks!

8 years agoRename the sculpt/paint unified flags for better consistency, no functional changes
Nicholas Bishop [Thu, 12 Jan 2012 18:08:07 +0000 (18:08 +0000)]
Rename the sculpt/paint unified flags for better consistency, no functional changes

8 years agoMove unified paint fields from ToolSettings into their own UnifiedPaintSettings struct.
Nicholas Bishop [Thu, 12 Jan 2012 17:22:32 +0000 (17:22 +0000)]
Move unified paint fields from ToolSettings into their own UnifiedPaintSettings struct.

File subversion is bumped to two in order to copy over the old fields.

This removes two RNA properties, sculpt_paint_use_unified_size and
sculpt_paint_use_unified_strength.

Code review link:
http://codereview.appspot.com/5529077

8 years agoFix #29860: cycles musgrave scale input not working correct.
Brecht Van Lommel [Thu, 12 Jan 2012 17:13:56 +0000 (17:13 +0000)]
Fix #29860: cycles musgrave scale input not working correct.

8 years agoRemove empty comment I added on accident.
Kent Mein [Thu, 12 Jan 2012 17:05:13 +0000 (17:05 +0000)]
Remove empty comment I added on accident.

Kent

8 years agouse render osa setting for opengl render sample count and BLI_jitter for opengl rende...
Campbell Barton [Thu, 12 Jan 2012 17:04:09 +0000 (17:04 +0000)]
use render osa setting for opengl render sample count and BLI_jitter for opengl rendering (previously was hard coded at 5).

8 years agoSome small fixes to get things compiling on solaris with cmake.
Kent Mein [Thu, 12 Jan 2012 16:31:27 +0000 (16:31 +0000)]
Some small fixes to get things compiling on solaris with cmake.
There are also some changes that need to be done to libmv but I'm
leaving those out so I can get it patched upstream first.

(Only works with gcc/g++ if we want to use sun's compiler we would need
to get rid of all of our annonymous structs which I don't think
we want to do at this point, example:

typedef struct wmNDOFMotionData {
        union {
                float tvec[3]; // translation
                struct { float tx, ty, tz; };   // this would need to be fixed
// something like this or something similar:
                struct { float x, y, z; } t;
                };
...
)

Kent

8 years ago../lib/linux wont built with theoraenc theoradec unbuntu user also complained that...
Campbell Barton [Thu, 12 Jan 2012 15:56:08 +0000 (15:56 +0000)]
../lib/linux wont built with theoraenc theoradec unbuntu user also complained that this failed to link.

Im not sure whats best default here, removing for now.

if it gives more problems we could have a FindTheora module.

8 years agoFix #29864: crash running blender in background mode with non-default key
Brecht Van Lommel [Thu, 12 Jan 2012 15:44:18 +0000 (15:44 +0000)]
Fix #29864: crash running blender in background mode with non-default key
configuration.

8 years agoremove blender 2.5 references in docs
Campbell Barton [Thu, 12 Jan 2012 15:16:08 +0000 (15:16 +0000)]
remove blender 2.5 references in docs

8 years agoreplace fixed sizes with sizeof when passing string length since size wasn't always...
Campbell Barton [Thu, 12 Jan 2012 13:16:30 +0000 (13:16 +0000)]
replace fixed sizes with sizeof when passing string length since size wasn't always correct.

8 years agoset pose channel names to match the length of bones, correct comment too which was...
Campbell Barton [Thu, 12 Jan 2012 12:35:52 +0000 (12:35 +0000)]
set pose channel names to match the length of bones, correct comment too which was glib and misleading.

8 years agode-duplicate object conversion code in BGE
Campbell Barton [Thu, 12 Jan 2012 09:02:29 +0000 (09:02 +0000)]
de-duplicate object conversion code in BGE

8 years agoadded comment; zbuffillGLinv4 and zbuffillGL4 are identical except for a 2 lines.
Campbell Barton [Thu, 12 Jan 2012 07:10:44 +0000 (07:10 +0000)]
added comment; zbuffillGLinv4 and zbuffillGL4 are identical except for a 2 lines.
no functional changes.

8 years agoremove commented editmesh code which is now moved to transform.c
Campbell Barton [Thu, 12 Jan 2012 06:32:07 +0000 (06:32 +0000)]
remove commented editmesh code which is now moved to transform.c

8 years agoremove redundant trailing slashes
Campbell Barton [Thu, 12 Jan 2012 06:11:08 +0000 (06:11 +0000)]
remove redundant trailing slashes

8 years agode-duplicate function copy-paste for node color sampling.
Campbell Barton [Thu, 12 Jan 2012 05:46:45 +0000 (05:46 +0000)]
de-duplicate function copy-paste for node color sampling.

8 years agofix for error in merge, weightpaint would crash
Campbell Barton [Thu, 12 Jan 2012 03:39:32 +0000 (03:39 +0000)]
fix for error in merge, weightpaint would crash

8 years agoCucumber - AA for blenderplayer and fullscreen
Dalai Felinto [Wed, 11 Jan 2012 20:53:22 +0000 (20:53 +0000)]
Cucumber - AA for blenderplayer and fullscreen
..............................................
svn merge ^/branches/soc-2011-cucumber -r 38968,38970,38973,39045,40845

Notes:
======
*  we replaced fullscreen by playerflag in DNA_scene.types.h. So no doversion here, I think this is a small reversion can't see any potential problem in forcuing users to re-check fullscreen. If the file is really old (<250) it will doversion though;

* (for after commit) it would be nice to gray out the width/height when desktop=True

* for a rainy day: it would be nice to have other ghost modes (e.g. screensaver) to support desktop + MSAA as well. It's not a huge deal given that I don't even know if anything else work (apart from windowed, fullscreen and embed) but it doesn't hurt to have it updated as well.

* there is something strange with outliner. I think space_outliner merge-info is not in sync with the ^/ folder. It's probably a wrong merge early in cucumber.

Commit Logs:
===========
# 40845 by dfelinto
remove desktop and fullscreen properties. They are both part of playerflag now
also I removed the fullscreen from the DNA completely. I don't think we need doversion that..

#39045 by kupoman
The Desktop option is now greyed out when fullscreen is not checked rather than disappearing from the UI completely.

#38973 by kupoman
Adding a checkbox to the UI to allow the full screen Blender Player to use the current desktop resolution instead of the resolution setting.

#38970 by kupoman
Multisampling now works in a fullscreen Blender Player.

#38968 by moguri
Committing a patch from Mitchell Stokes (Moguri) to include a setting in the UI for the Blenderplayer multisampling.

8 years agouse skip-save for ED_object_add_generic_props(), not essential - but it was annoying...
Campbell Barton [Wed, 11 Jan 2012 20:14:15 +0000 (20:14 +0000)]
use skip-save for ED_object_add_generic_props(), not essential - but it was annoying to have 'Reset' move objects to 0,0,0

8 years agofix for error in last commit - don't overwrite options in the new operator which...
Campbell Barton [Wed, 11 Jan 2012 20:03:41 +0000 (20:03 +0000)]
fix for error in last commit - don't overwrite options in the new operator which have been set before the operator runs.

8 years agorunning operators now uses last used settings, added reset button to set defaults.
Campbell Barton [Wed, 11 Jan 2012 19:33:14 +0000 (19:33 +0000)]
running operators now uses last used settings, added reset button to set defaults.

details
- uses redo stack to get recent settings from.
- adds a flag to IDProperties so RNA_property_is_set() can return false even if the property is exists.
- PROP_SKIP_SAVE option skips these settings from getting reset (as with presets).

8 years agoadd RNA_property_is_set function, use for WM_menu_invoke to avoid double lookup and...
Campbell Barton [Wed, 11 Jan 2012 16:48:22 +0000 (16:48 +0000)]
add RNA_property_is_set function, use for WM_menu_invoke to avoid double lookup and py api to de-duplicate some checks

8 years agorename RNA_property_is_set() --> RNA_struct_property_is_set() in preperation to add...
Campbell Barton [Wed, 11 Jan 2012 16:32:12 +0000 (16:32 +0000)]
rename RNA_property_is_set() --> RNA_struct_property_is_set() in preperation to add a second version of the function which takes the property rather then its name.

8 years agoFix #29836: stress not working as input for displacement texture. Previously it
Brecht Van Lommel [Wed, 11 Jan 2012 16:21:17 +0000 (16:21 +0000)]
Fix #29836: stress not working as input for displacement texture. Previously it
would be computed after displacement, but I don't think this made much sense.

8 years agoChanges composite node group of double edge mask node from FILTER to MATTE.
Peter Larabell [Wed, 11 Jan 2012 15:16:48 +0000 (15:16 +0000)]
Changes composite node group of double edge mask node from FILTER to MATTE.

8 years agosvn merge ^/trunk/blender -r43278:43294
Campbell Barton [Wed, 11 Jan 2012 15:04:54 +0000 (15:04 +0000)]
svn merge ^/trunk/blender -r43278:43294

8 years agosvn merge ^/trunk/blender -r43220:43278 --accept postpone
Campbell Barton [Wed, 11 Jan 2012 14:14:04 +0000 (14:14 +0000)]
svn merge ^/trunk/blender -r43220:43278 --accept postpone

8 years agoFix #29848: cycles not respecting dupli group visible layers, also exposed
Brecht Van Lommel [Wed, 11 Jan 2012 13:55:00 +0000 (13:55 +0000)]
Fix #29848: cycles not respecting dupli group visible layers, also exposed
DupliObject.hide property in API now.

8 years agoFix: toggling premultiply or color management not updating packed images.
Brecht Van Lommel [Wed, 11 Jan 2012 13:18:24 +0000 (13:18 +0000)]
Fix: toggling premultiply or color management not updating packed images.

8 years agoFix: cycles CPU device not being used when it should be on some multi-GPU
Brecht Van Lommel [Wed, 11 Jan 2012 13:18:06 +0000 (13:18 +0000)]
Fix: cycles CPU device not being used when it should be on some multi-GPU
configurations.

8 years agodynamicpaint had some incorrect string sizes for layers names, use BLI string functio...
Campbell Barton [Wed, 11 Jan 2012 12:56:31 +0000 (12:56 +0000)]
dynamicpaint had some incorrect string sizes for layers names, use BLI string functions in more places too.

8 years agouse BLI_strncpy and BLI_snprintf when the size of the string is known.
Campbell Barton [Wed, 11 Jan 2012 12:33:51 +0000 (12:33 +0000)]
use BLI_strncpy and BLI_snprintf when the size of the string is known.

fix for sequencer unique naming which was missed with string length update.

8 years agoAdded mode-getting functions for GHOST under X11 (GNU/Linux).
Alex Fraser [Wed, 11 Jan 2012 12:28:31 +0000 (12:28 +0000)]
Added mode-getting functions for GHOST under X11 (GNU/Linux).
Enabled xvidmode by default in cmake.
Patch approved by Campbell.

8 years agoThis patch implements mode switching (resolution changing) for full-screen games.
Alex Fraser [Wed, 11 Jan 2012 11:59:57 +0000 (11:59 +0000)]
This patch implements mode switching (resolution changing) for full-screen games.
Hopefully, this should be platform agnostic. Requires WITH_GHOST_SDL.
This patch contains code from Quake 2 and bzflag.
Tracker: [#29839]

8 years agominor cleanup for string use - no functional changes
Campbell Barton [Wed, 11 Jan 2012 09:33:44 +0000 (09:33 +0000)]
minor cleanup for string use - no functional changes
- use more logical names for strings, noticed too many strings called `str` when reviewing name patch.
- pass __func__ macro to uiBeginBlock(), quite a few names were wrong (copy/paste error).

8 years agoLonger names support for all ID and other object names
Sergey Sharybin [Wed, 11 Jan 2012 08:51:06 +0000 (08:51 +0000)]
Longer names support for all ID and other object names

This commit extends limit of ID and objects to 64 (it means 63 meaning
characters and 1 for zero-terminator). CustomData layers names are also
extended.
Changed DNA structures and all places where length constants were hardcoded.

All names which are "generating" from ID block should be limited by MAX_ID_NAME-2,
all non-id names now has got own define called MAX_NAME which should be used all
over for non-id names to make further name migration stuff easier.

All name fields in DNA now have comment with constant which corresponds to
hardcoded numeric value which should make it easier to further update this
limits or even switch to non-hardcoded values in DNA.

Special thanks to Campbell who helped figuring out some issues and helped a lot
in finding all cases where hardcoded valued were still used in code.

Both of forwards and backwards compatibility is stored with blender versions newer
than January 5, 2011. Older versions had issue with placing null-terminator to
DNA strings on file load which will lead to some unpredictable behavior or even
crashes.

8 years agobge camera actuator: -X and -Y axis
Dalai Felinto [Wed, 11 Jan 2012 07:27:39 +0000 (07:27 +0000)]
bge camera actuator: -X and -Y axis

The camera actuator only allows to look the object from its front face.

Given that Blender takes -Y as the default forward orientation, the current
functionality doesn't let a camera to track an actor from behind.

This patch allows for -X and -Y axis tracking. This way a camera over the
shoulders of a character is possible (without resorting to rotate the
mesh/armature original orientation.

- patch reviewed by Campbell Barton, thanks

8 years agoFixed typo in comments for libmv build rules files
Sergey Sharybin [Wed, 11 Jan 2012 07:19:44 +0000 (07:19 +0000)]
Fixed typo in comments for libmv build rules files

8 years agofix [#29794] Cannot hide faces in weight-paint mode
Campbell Barton [Wed, 11 Jan 2012 07:03:47 +0000 (07:03 +0000)]
fix [#29794] Cannot hide faces in weight-paint mode

bug was introduced with cycles merge.

8 years agominor changes to BLF api use
Campbell Barton [Wed, 11 Jan 2012 05:45:39 +0000 (05:45 +0000)]
minor changes to BLF api use
- replace calls to BLF_width & BLF_height --> BLF_width_and_height
- no need to call strlen() on length value passed to BLF_draw(). this already checks for \0 char.

8 years agoChange how object menu selection works, use an operator with an enum rather then...
Campbell Barton [Wed, 11 Jan 2012 03:40:20 +0000 (03:40 +0000)]
Change how object menu selection works, use an operator with an enum rather then a menu with 'OBJECT_OT_select_name',

remove 'OBJECT_OT_select_name' operator since its no longer needed.

8 years agoremove spot_interactive() which is now handled by generic py operator.
Campbell Barton [Wed, 11 Jan 2012 02:25:43 +0000 (02:25 +0000)]
remove spot_interactive() which is now handled by generic py operator.

8 years agopatch [#29853] UTF-8 copy&paste for X11 GHOST
Campbell Barton [Wed, 11 Jan 2012 00:34:42 +0000 (00:34 +0000)]
patch [#29853] UTF-8 copy&paste for X11 GHOST