blender.git
7 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

7 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.

7 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.

7 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.

7 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.

7 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!

7 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

7 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

7 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.

7 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

7 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).

7 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

7 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.

7 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.

7 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

7 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.

7 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.

7 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

7 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.

7 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

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

7 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.

7 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

7 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.

7 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

7 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.

7 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).

7 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

7 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.

7 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.

7 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.

7 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

7 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

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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]

7 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).

7 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.

7 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

7 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

7 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.

7 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.

7 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.

7 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.

7 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

7 years agominor edits to xml presets
Campbell Barton [Wed, 11 Jan 2012 00:22:21 +0000 (00:22 +0000)]
minor edits to xml presets
- check 'SKIP_SAVE' property (used for active theme area which become annoying)
- indent presets better

7 years agowhen building blender as a py module use add_library(... MODULE on all systems, was...
Campbell Barton [Wed, 11 Jan 2012 00:09:46 +0000 (00:09 +0000)]
when building blender as a py module use add_library(... MODULE on all systems, was SHARED on linux/windows.

7 years agoCommenting and comment fixing
Joshua Leung [Tue, 10 Jan 2012 23:14:20 +0000 (23:14 +0000)]
Commenting and comment fixing

* Fixed incorrect description for scene.keyingsets list
* Added dividers to try and make it clearer what structs were related.
  * Reshuffled TransformOrientation struct since it occurred right in the middle
of all the other Paint-Mode stuff

7 years agoSVN maintenance.
Guillermo S. Romero [Tue, 10 Jan 2012 19:45:20 +0000 (19:45 +0000)]
SVN maintenance.

7 years ago(no commit message)
Peter Larabell [Tue, 10 Jan 2012 19:08:08 +0000 (19:08 +0000)]

7 years agoOSX: cleanup for cmake MODULE compile, not working yet, needs more investigation
Jens Verwiebe [Tue, 10 Jan 2012 19:01:27 +0000 (19:01 +0000)]
OSX: cleanup for cmake MODULE compile, not working yet, needs more investigation

7 years agoOSX: fix compiling Blender as MODULE
Jens Verwiebe [Tue, 10 Jan 2012 16:47:20 +0000 (16:47 +0000)]
OSX: fix compiling Blender as MODULE

7 years agomove theme presets out of the header into the main panel.
Campbell Barton [Tue, 10 Jan 2012 16:30:16 +0000 (16:30 +0000)]
move theme presets out of the header into the main panel.

7 years agoenable xml preset save/load, replace install/export themes with these.
Campbell Barton [Tue, 10 Jan 2012 16:20:01 +0000 (16:20 +0000)]
enable xml preset save/load, replace install/export themes with these.

7 years agoinitial support for XML presets, these have the advantage...
Campbell Barton [Tue, 10 Jan 2012 15:08:12 +0000 (15:08 +0000)]
initial support for XML presets, these have the advantage...

- missing attributes are ignored and don't error out like they would on a script when the API changes.
- don't run code (secure to run from untrusted sources).

use xml presets for themes.

7 years agoFix #29827: 2.61 Scale and translate bugs
Sergey Sharybin [Tue, 10 Jan 2012 14:54:51 +0000 (14:54 +0000)]
Fix #29827: 2.61 Scale and translate bugs

Scale lead to crash because of incorrect check for buffer size.
Translate bug was caused by ignoring buffer offset.

7 years agoFix regressions in the color management / dither patch.
Brecht Van Lommel [Tue, 10 Jan 2012 14:24:18 +0000 (14:24 +0000)]
Fix regressions in the color management / dither patch.

7 years agoFix jobs progress display in taskbar incorrectly flashing on/off with multiple
Brecht Van Lommel [Tue, 10 Jan 2012 14:24:02 +0000 (14:24 +0000)]
Fix jobs progress display in taskbar incorrectly flashing on/off with multiple
jobs active.

7 years agoAdding the kyrgyz language.
Bastien Montagne [Tue, 10 Jan 2012 14:02:27 +0000 (14:02 +0000)]
Adding the kyrgyz language.

7 years agoremove WITH_OGG define, its not used anywhere.
Campbell Barton [Tue, 10 Jan 2012 13:33:53 +0000 (13:33 +0000)]
remove WITH_OGG define, its not used anywhere.

7 years agoSome editors choke on lines over 100,000 chars long. Better split.
Campbell Barton [Tue, 10 Jan 2012 11:22:41 +0000 (11:22 +0000)]
Some editors choke on lines over 100,000 chars long. Better split.

7 years agocomment unused vars
Campbell Barton [Mon, 9 Jan 2012 22:18:04 +0000 (22:18 +0000)]
comment unused vars

7 years agoCamera tracking: fixes for preview widget
Sergey Sharybin [Mon, 9 Jan 2012 20:19:07 +0000 (20:19 +0000)]
Camera tracking: fixes for preview widget

- Clamping of image on boundaries now happens nicely
- Looks like to prevent dark edges on image boundary when doing
  bicubic interpolation, margin should be 3px. Maybe somebody can verify this?

7 years agoCamera tracking: minor code cleanup of RNA file, no functional changes
Sergey Sharybin [Mon, 9 Jan 2012 20:18:57 +0000 (20:18 +0000)]
Camera tracking: minor code cleanup of RNA file, no functional changes

7 years agoCamera tracking: tracks copy/paste operator
Sergey Sharybin [Mon, 9 Jan 2012 20:18:48 +0000 (20:18 +0000)]
Camera tracking: tracks copy/paste operator

This commit implements basic clipboard support for movie tracking data
int clip editor. Used own implementation of clipboard like it's done
for sequencer.
Ideally it needed to be switched to more general clipboard system, but
currently this system is designed for text data only and it need to
be re-designed itself. But this feature is quite useful since object
tracking is implemented, so it should be OK to live with such own
implementation for a while.

7 years agoCamera tracking: marker's frame number is now writable from python api
Sergey Sharybin [Mon, 9 Jan 2012 20:18:36 +0000 (20:18 +0000)]
Camera tracking: marker's frame number is now writable from python api

7 years agoCamera tracking: improvements of python api
Sergey Sharybin [Mon, 9 Jan 2012 20:18:28 +0000 (20:18 +0000)]
Camera tracking: improvements of python api

- marker_find_frame moved to MovieTrack.markers and called find_frame
- Added MovieTrack.markers.insert_frame to insert marker at specified frame
- Added MovieTrack.markers.delete_frame to delete marker from specified frame

7 years agoui typo + small fix
Dalai Felinto [Mon, 9 Jan 2012 20:13:03 +0000 (20:13 +0000)]
ui typo + small fix

Blender internally deals with Font Objects, but as far as the user is concerned they are Text Objects.
Which, btw, makes me wonder why we have an 'F' as the logo for Text objects, and why the ob.type is 'FONT' in python

(I guess it's a Font Data for a Text object)

7 years agoCycles: multi GPU rendering support.
Brecht Van Lommel [Mon, 9 Jan 2012 16:58:01 +0000 (16:58 +0000)]
Cycles: multi GPU rendering support.

The rendering device is now set in User Preferences > System, where you can
choose between OpenCL/CUDA and devices. Per scene you can then still choose
to use CPU or GPU rendering.

Load balancing still needs to be improved, now it just splits the entire
render in two, that will be done in a separate commit.

7 years agoCycles: show elapsed time for F12/background render.
Brecht Van Lommel [Mon, 9 Jan 2012 16:57:46 +0000 (16:57 +0000)]
Cycles: show elapsed time for F12/background render.

7 years agoCycles: small tweak to checker texture, scale rather than add with epsilon,
Brecht Van Lommel [Mon, 9 Jan 2012 16:57:26 +0000 (16:57 +0000)]
Cycles: small tweak to checker texture, scale rather than add with epsilon,
looks a bit better on all sides of a mesh.

7 years agoFix #29835: joining meshes leads to crash
Sergey Sharybin [Mon, 9 Jan 2012 15:17:09 +0000 (15:17 +0000)]
Fix #29835: joining meshes leads to crash

7 years agoFix #29793: Physics go crazy if frames get skipped
Sergey Sharybin [Mon, 9 Jan 2012 14:08:06 +0000 (14:08 +0000)]
Fix #29793: Physics go crazy if frames get skipped

Calculate cloth and softbody only for single frame time deltas
(like it's already done for smoke)

7 years agohave add_weight_mcol_dm() set the 4th corner of a tri faces color to 0, otherwise...
Campbell Barton [Mon, 9 Jan 2012 10:38:22 +0000 (10:38 +0000)]
have add_weight_mcol_dm() set the 4th corner of a tri faces color to 0, otherwise uninitialized memory gets copied about.

7 years agoWIP script to check results of different modifier combinations and display modes...
Campbell Barton [Mon, 9 Jan 2012 10:30:27 +0000 (10:30 +0000)]
WIP script to check results of different modifier combinations and display modes, useful for validating bmesh changes don't break specific modifier combinations.

7 years agoTag unused argument
Sergey Sharybin [Mon, 9 Jan 2012 09:30:51 +0000 (09:30 +0000)]
Tag unused argument

7 years agobugfix for solidify modifier rim faces which were created from triangles, would get...
Campbell Barton [Mon, 9 Jan 2012 09:30:04 +0000 (09:30 +0000)]
bugfix for solidify modifier rim faces which were created from triangles, would get wrong customdata copied since it used the 4th index of a tri.

fixed already in bmesh.

7 years agoTypo fix - thanks "Olson" on IRC!
Joshua Leung [Mon, 9 Jan 2012 09:12:55 +0000 (09:12 +0000)]
Typo fix - thanks "Olson" on IRC!

7 years agodont draw object center dot for opengl render
Campbell Barton [Mon, 9 Jan 2012 03:16:30 +0000 (03:16 +0000)]
dont draw object center dot for opengl render

7 years agofix an error rendering opengl weightpaint data wasn't working when python initialized...
Campbell Barton [Mon, 9 Jan 2012 02:50:09 +0000 (02:50 +0000)]
fix an error rendering opengl weightpaint data wasn't working when python initialized opengl render on startup (needed for testing script).

7 years agoFix #29828: Reloading background movie clip crashes Blender
Sergey Sharybin [Sun, 8 Jan 2012 19:51:14 +0000 (19:51 +0000)]
Fix #29828: Reloading background movie clip crashes Blender

Crash was caused by invalidating scopes used by space clip editors. It shouldn't
actually happen in movie clip reload operator due to it will happen on NA_EDITED
notifier handler sent to movie clip context.

7 years agoCycles: checker texture node, patch by Thomas.
Brecht Van Lommel [Sun, 8 Jan 2012 14:55:43 +0000 (14:55 +0000)]
Cycles: checker texture node, patch by Thomas.

7 years agoColor:
Brecht Van Lommel [Sun, 8 Jan 2012 13:55:53 +0000 (13:55 +0000)]
Color:

* Accelerated sRGB <=> linear conversion using lookup table, this can speed up
  loading of images in the compositor and simple renders quite a bit.
* Dithering now uses the Floyd-Steinberg algorithm. Previously it would simply
  randomize each pixel slightly, adding noise, now that should be reduced.

Patch #29309 by David M.

7 years agosvn merge ^/trunk/blender -r43183:43220
Campbell Barton [Sun, 8 Jan 2012 13:09:09 +0000 (13:09 +0000)]
svn merge ^/trunk/blender -r43183:43220

7 years agoImproved auto-hiding of unused sockets for collapsed nodes.
Lukas Toenne [Sun, 8 Jan 2012 10:23:19 +0000 (10:23 +0000)]
Improved auto-hiding of unused sockets for collapsed nodes.

Instead of generally hiding all unused sockets in collapsed mode, the sockets now have a new explicit flag SOCK_AUTO_HIDDEN, which is only toggled when the hide_toggle operator is called. This way the auto-hidden sockets stay as they are when nodes are duplicated etc. The new flag is necessary to distinguish between manually hidden sockets (via hide_sockets_toggle operator) and automatically hidden sockets and restore the node state when unhiding a node.

7 years agoFix for [#28978]
Alexander Kuznetsov [Sun, 8 Jan 2012 05:10:52 +0000 (05:10 +0000)]
Fix for [#28978]
Disabling mode switching in panning in 2d as it is disabled in 3d also.
Apparently, it is a not good idea to call modal method from a modal method as the last won't be canceled.

7 years agoCode cleanup
Joshua Leung [Sun, 8 Jan 2012 04:14:13 +0000 (04:14 +0000)]
Code cleanup

Removing some old + unused stuff that's not coming back. For example, the code
for the old "specials menu" used everywhere/all contexts.

7 years agoFix build break with double-definition of EXR stubs
Andrew Wiggin [Sat, 7 Jan 2012 21:16:15 +0000 (21:16 +0000)]
Fix build break with double-definition of EXR stubs

A better solution would be to mark all function in openexr_multi.h as forceinline or static, but this change just fixes it to work for the reason trunk works: the header defining the stubs is only needs to be included in one .c file

7 years agoFix broken normals with mirror modifier
Andrew Wiggin [Sat, 7 Jan 2012 20:53:11 +0000 (20:53 +0000)]
Fix broken normals with mirror modifier

7 years agoFix for last commit, missed check for ob, could cause errors when object was removed.
Thomas Dinges [Fri, 6 Jan 2012 22:55:15 +0000 (22:55 +0000)]
Fix for last commit, missed check for ob, could cause errors when object was removed.

7 years agoMore whitespace cleanup in python scripts
Sergey Sharybin [Fri, 6 Jan 2012 21:25:28 +0000 (21:25 +0000)]
More whitespace cleanup in python scripts

7 years agoWhitespace cleanup in curve properties script
Sergey Sharybin [Fri, 6 Jan 2012 21:24:10 +0000 (21:24 +0000)]
Whitespace cleanup in curve properties script

7 years agoFix #29568: Blender restores deleted scene
Sergey Sharybin [Fri, 6 Jan 2012 17:32:20 +0000 (17:32 +0000)]
Fix #29568: Blender restores deleted scene

Special notifiers used for scene deletion which lead to undo pushes
after SCENE_OT_delete operator happening with scene still present in
the mainfile. That was a reason why operator redo used to restore
scene.

It's not so obvious why special notifier type is needed for scene
set and deletion -- it confuses undo system without having some
obvious advantages. Using "direct" scene deletion and setting
seems to be working fine so let's see if there'll be some issues
with this.

7 years agoMove glTexEnvi to draw__start/draw__end.
Diego Borghetti [Fri, 6 Jan 2012 16:40:57 +0000 (16:40 +0000)]
Move glTexEnvi to draw__start/draw__end.

As Campbell point, this is to avoid call glGet/glTexEnvi
on each character.

7 years agoTweaks for Node Header UI code:
Thomas Dinges [Fri, 6 Jan 2012 16:37:07 +0000 (16:37 +0000)]
Tweaks for Node Header UI code:
* Don't show "New material" operator, when object type can't have materials
* Don't show "Use Nodes" for lamps in Blender Internal.

7 years agoFix #29743: Video sequencer wipe effect bug
Sergey Sharybin [Fri, 6 Jan 2012 10:08:46 +0000 (10:08 +0000)]
Fix #29743: Video sequencer wipe effect bug

Blur width used to be calculated quite strange depending on current angle.
Also, it used to be using wrong formula to calculate distance between
current point and boundary line which made blur width almost useless.

Now actual blur width is doesn't depend on angle and use corrected formula
for distance calculation which makes blur width slider behaves more
predictable.

This commit might make old files using wipe+blur be rendered a bit differently,
but don't think it's indeed issue because old behavior was crappy to setup
something useful so don't think this setup was used a lot.