9 years agoMerging r42062 through r42159 from trunk into soc-2011-tomato
Sergey Sharybin [Fri, 25 Nov 2011 15:32:23 +0000 (15:32 +0000)]
Merging r42062 through r42159 from trunk into soc-2011-tomato

9 years agoDo not use transparent rendering in 3d viewport for objects which are in edit mode
Sergey Sharybin [Fri, 25 Nov 2011 12:55:42 +0000 (12:55 +0000)]
Do not use transparent rendering in 3d viewport  for objects which are in edit mode

Transparent rendering can't be implemented in way it gives accurate shading in
3d viewport. It's acceptable for object mode, but when you're in edit mode
it gives more problems than benefits of seeing transparent faces.

This is possible fix for for weird polygons in [#29255] Object invisible and weird polygons appearance

9 years agolibmv: don't replace flags with rel_flags but add, to preserve all flags
Jens Verwiebe [Fri, 25 Nov 2011 11:31:51 +0000 (11:31 +0000)]
libmv: don't replace flags with rel_flags but add, to preserve all flags

9 years agoPatch #29394: Error in VIEW3D_MT_EDIT_CURVE menu
Sergey Sharybin [Fri, 25 Nov 2011 09:22:36 +0000 (09:22 +0000)]
Patch #29394: Error in VIEW3D_MT_EDIT_CURVE menu

Wrong shortcut was displaying for Curve -> Control Point -> Tilt operator

Patch by Mike Sloman, thanks!

9 years agoImage save as operator 'BW' option wasnt working on some formats, now only show when...
Campbell Barton [Fri, 25 Nov 2011 03:47:34 +0000 (03:47 +0000)]
Image save as operator 'BW' option wasnt working on some formats, now only show when its supported.

9 years agouse enum for draw wire setting to be easier to read, no functional change.
Campbell Barton [Fri, 25 Nov 2011 02:35:23 +0000 (02:35 +0000)]
use enum for draw wire setting to be easier to read, no functional change.

9 years agoblacklist language property for sphinx docs, encoding was messing up PDF generation.
Campbell Barton [Thu, 24 Nov 2011 22:24:07 +0000 (22:24 +0000)]
blacklist language property for sphinx docs, encoding was messing up PDF generation.

9 years agoskip importing shutil on load.
Campbell Barton [Thu, 24 Nov 2011 21:59:43 +0000 (21:59 +0000)]
skip importing shutil on load.

9 years agoMerging Blenderplayer modifier fix (U.gameflags |= USER_DISABLE_VBO) from Cucumber.
Mitchell Stokes [Thu, 24 Nov 2011 21:16:27 +0000 (21:16 +0000)]
Merging Blenderplayer modifier fix (U.gameflags |= USER_DISABLE_VBO) from Cucumber.

9 years agoFix cycles python error introduced in revision 42138.
Brecht Van Lommel [Thu, 24 Nov 2011 21:14:48 +0000 (21:14 +0000)]
Fix cycles python error introduced in revision 42138.

9 years agoFix part of #29310: secondary point caches for cloth did not get steps
Brecht Van Lommel [Thu, 24 Nov 2011 20:46:00 +0000 (20:46 +0000)]
Fix part of #29310: secondary point caches for cloth did not get steps
set to correct default, was 10 when supposed to be 1.

9 years agoFix #29371: crash deleting objects in outliner. This was introduced in the
Brecht Van Lommel [Thu, 24 Nov 2011 20:24:03 +0000 (20:24 +0000)]
Fix #29371: crash deleting objects in outliner. This was introduced in the
bugfix for #28467, it deleted outliner tree while still traversing it.

9 years agoUI: small fix for forward compatibility, keep this style setting so opening
Brecht Van Lommel [Thu, 24 Nov 2011 19:38:20 +0000 (19:38 +0000)]
UI: small fix for forward compatibility, keep this style setting so opening
in older blender versions show correct panel header spacing still.

9 years agopep8 edits and avoid naming conflicts with python builtins
Campbell Barton [Thu, 24 Nov 2011 19:36:12 +0000 (19:36 +0000)]
pep8 edits and avoid naming conflicts with python builtins

9 years agoBGE patch: [#29285] Video Texture: Avoid slow rescale (non power of 2 support check...
Dalai Felinto [Thu, 24 Nov 2011 19:27:15 +0000 (19:27 +0000)]
BGE patch: [#29285] Video Texture: Avoid slow rescale (non power of 2 support check) by Goran Milovanovic (goran)
"Just a simple check for non power of two support (GLEW_ARB_texture_non_power_of_two), to avoid what seems to be a very slow, and very unnecessary gluScaleImage call."

This is the only part of the VideoTexture that does the POT calculation, so the check seems good.
It would be interesting if some opengl guru would like to benchmark the use of this in other areas of Blender (e.g. 2D Filters, and all GLSL materials).

Note that mipmap should also be supported automatically by this extension, so it's not something to worry about.

9 years agoScons / Cycles:
Thomas Dinges [Thu, 24 Nov 2011 19:22:34 +0000 (19:22 +0000)]
Scons / Cycles:
* Add dummy WITH_BF_CYCLES_BINARIES to scons, to be able to copy the .cubin kernels from cmake and have it work.

9 years ago2.6 Code removal:
Thomas Dinges [Thu, 24 Nov 2011 17:19:38 +0000 (17:19 +0000)]
2.6 Code removal:
* Deleted some #if 0 code, which was either already replaced or won't come back.

9 years agoFix #29366: multires crash with meshes that had verts/edges not connected to any...
Brecht Van Lommel [Thu, 24 Nov 2011 17:06:50 +0000 (17:06 +0000)]
Fix #29366: multires crash with meshes that had verts/edges not connected to any face.

9 years ago(See for review of patch)
Konrad Kleine [Thu, 24 Nov 2011 14:58:42 +0000 (14:58 +0000)]
(See for review of patch)

I've written a convenient function that returns the sibling of a node in the
red-black tree implementation originally implemented by Joshua Leung.

I want to use this get_sibling() function in the future to implement the missing
removal function of the red-black tree implementation.

For now the get_sibling() function just simplifies the get_uncle() function.

Just like the rest of the red-black tree implementation this diff is based on

9 years agoFix #29369: "test" , type = 'SURFACE') does not create...
Sergey Sharybin [Thu, 24 Nov 2011 14:30:37 +0000 (14:30 +0000)]
Fix #29369: "test" , type = 'SURFACE') does not create a surface

This issue it totally related on issue with changing object datablock.
For curves it used to guess object type from curve datablock based on
count of control points in V direction.
This quess fails in case when SurfCircle datablock is trying to be reused
by another surface object or as another sample empty surface databouck used
to be treated as curve.

Store type in Curve when creating new Curve datablock which is used in
this object type quessing function.

Note: Previously saved files wouldn't change behavior at all.

9 years agoFix #29306: Alt+N, Enter In Image View Does closes the dialog without executing.
Sergey Sharybin [Thu, 24 Nov 2011 13:51:31 +0000 (13:51 +0000)]
Fix #29306: Alt+N, Enter In Image View Does closes the dialog without executing.

If enter is pressed outside of any button in menu, generate two menu return values:
- UI_RETURN_CANCEL so button wouldn't be executed
- UI_RETURN_POPUP_OK so callback associated with popup block would be executed

9 years agoFix #29384: Mesh without polygons + Modifier crashes when switching to sculpt mode
Sergey Sharybin [Thu, 24 Nov 2011 13:39:43 +0000 (13:39 +0000)]
Fix #29384: Mesh without polygons + Modifier crashes when switching to sculpt mode

There were some issues with PBVH which prevented working it for meshes without faces.

Discussed with Brecht, for benefits of dynamic-topology-sculpting and so better to
make PBVH survive such things.

Added some extra NULL-pointer checks for this.

9 years agoFix wrong camera preset name D35 => D3S.
Brecht Van Lommel [Thu, 24 Nov 2011 13:07:02 +0000 (13:07 +0000)]
Fix wrong camera preset name D35 => D3S.

9 years agoFix for wrong event clipping in open node groups (bug #29383). The internal node...
Lukas Toenne [Thu, 24 Nov 2011 09:26:19 +0000 (09:26 +0000)]
Fix for wrong event clipping in open node groups (bug #29383). The internal node blocks of the group were created before the group node block itself, so the node group block clips events for internal nodes. Generally, blocks should be created just like the drawing order.

9 years ago- saving as a jpeg image would set the image as not having an alpha channel even...
Campbell Barton [Thu, 24 Nov 2011 06:30:37 +0000 (06:30 +0000)]
- saving as a jpeg image would set the image as not having an alpha channel even when saving a copy.
- setting the color channels on save as would ignore the channel - BW/RGB/RGBA setting.
  now its used when available but still need to hide BW for formats blender can only write as color.

9 years agoimage format arg parsing for creator.c
Campbell Barton [Thu, 24 Nov 2011 05:18:26 +0000 (05:18 +0000)]
image format arg parsing for creator.c

move these checks from creator into BKE's image.c, this way we dont need the defines for creator, scons was missing DDS, HDR & Cineon  for example and nobody noticed.

9 years agorename mathutils constructors to match other parts of the bpy/api (no functional...
Campbell Barton [Thu, 24 Nov 2011 04:45:36 +0000 (04:45 +0000)]
rename mathutils constructors to match other parts of the bpy/api (no functional changes)

9 years agopatch: [#29382] Arbitrary Length Array Function Additions and Modifications
Campbell Barton [Thu, 24 Nov 2011 04:12:16 +0000 (04:12 +0000)]
patch: [#29382] Arbitrary Length Array Function Additions and Modifications
from Andrew Hale (trumanblending), with some edits to use these in mathutils.Vector added.

Added Functions:
- dot_vn_vn - Dot product of two arrays
- normalize_vn_vn - Normalize an array and store the result in a second array
- normalize_vn - Normalize an array inplace

Renamed Functions:
Some functions have been renamed to make them consistent with the naming conventions used by fixed length array functions.
- fill_vni to fill_vn_i
- fill_vn to fill_vn_fl

9 years agoBGE Animations: Getting the Action Actuator to behave better with pulse mode (on...
Mitchell Stokes [Wed, 23 Nov 2011 23:29:36 +0000 (23:29 +0000)]
BGE Animations: Getting the Action Actuator to behave better with pulse mode (on the sensor) and continuous enabled.

9 years agoBGE patch:[#29372] Matrix size for bge.types.BL_ArmatureBone.bone_mat by Damien Toura...
Dalai Felinto [Wed, 23 Nov 2011 23:02:38 +0000 (23:02 +0000)]
BGE patch:[#29372] Matrix size for bge.types.BL_ArmatureBone.bone_mat by Damien Touraine (touraine)

9 years ago2.6 UI code:
Thomas Dinges [Wed, 23 Nov 2011 19:05:52 +0000 (19:05 +0000)]
2.6 UI code:
* Get rid of subrow/subcol variable names in the C UI code as well, use sub instead. This is shorter and sufficient.
* Minor layout alignment fixes.
* Greying out in NLA editor was doing nothing for "strip_time" property.

9 years agoThis checks shouldn't have been removed.
Sergey Sharybin [Wed, 23 Nov 2011 18:28:12 +0000 (18:28 +0000)]
This checks shouldn't have been removed.

9 years agoCamera tracking: operator to setup scene for compositing things into footage
Sergey Sharybin [Wed, 23 Nov 2011 17:30:47 +0000 (17:30 +0000)]
Camera tracking: operator to setup scene for compositing things into footage

This operator does needed changes to

- 3D viewport
- Scene settings
- World settings
- Compositor
- Scene objects

in a way scene becomes ready to be composited into footage.

Known issue: preview doesn't work "out-of-box" after running this script,
selecting View node and hitting Tab helps. Not sure it can be solved
in nicer way at this moment.

9 years agoPatch #29336: renaming UV (Texture) Layer to UV Map in the user interface,
Brecht Van Lommel [Wed, 23 Nov 2011 17:25:25 +0000 (17:25 +0000)]
Patch #29336: renaming UV (Texture) Layer to UV Map in the user interface,
by Gaia Clary.

Rationale: the name was confusing and not always used consistently, and this
map itself is not something that can be layered, rather the map can be used
as texture coordinates in some layered setup.

The original intent was to indicate this contained more than just UV's, but
the game engine settings have already been moved out, and apparently users
didn't really get this from the name anyway.

9 years agominor changes
Campbell Barton [Wed, 23 Nov 2011 17:14:29 +0000 (17:14 +0000)]
minor changes
- avoid duplicate image enum definitions.
- move image UI format & bw/rgb/rgba onto 1 line.
- add 'make config' convenience target to run ccmake or cmake-gui

9 years agoFix compilation error of blenderplayer caused by recent commit.
Sergey Sharybin [Wed, 23 Nov 2011 16:44:33 +0000 (16:44 +0000)]
Fix compilation error of blenderplayer caused by recent commit.

9 years agoCycles: build flags tweaks to avoid errors with msvc debug build.
Brecht Van Lommel [Wed, 23 Nov 2011 16:30:50 +0000 (16:30 +0000)]
Cycles: build flags tweaks to avoid errors with msvc debug build.

9 years agoQuick fix for "droidsans" Blender font, should fix missing umlaut and accent on capitals.
Bastien Montagne [Wed, 23 Nov 2011 16:30:41 +0000 (16:30 +0000)]
Quick fix for "droidsans" Blender font, should fix missing umlaut and accent on capitals.

Somewhere in the process of generating that Frankenstein font, most latin capital glyphs lost there "modifier" part (umlaut, accent, etc.). I added them again using fontforge auto tool, but not to all of them though, as some would add a shift to the whole font... :/

This is not a nice fix (the correct way would be to merge again the whole latin part of dejavu into blender font, but again, I couldn’t manage to do it without an ugly global font shift), but at least it works, doesn’t shift the font, and add back most modified capitals.

9 years agoAdded method clear to most of collections which supports new/remove.
Sergey Sharybin [Wed, 23 Nov 2011 16:12:11 +0000 (16:12 +0000)]
Added method clear to most of collections which supports new/remove.

This method not added to animation-specific structures yet/

9 years agoFix #29367: Vertex parent regression
Sergey Sharybin [Wed, 23 Nov 2011 15:44:20 +0000 (15:44 +0000)]
Fix #29367: Vertex parent regression

Regression was introduced in svn rev40343. It was caused by re-creating
EditMesh structure which was needed to solve issues with parenting to
vertices after topology changes. This would also erase derivedMesh.

Problem reported now is caused by missing derivedMesh which is used
to solve parenting and apply inverted matrix on ob->parentin, so
parented object used to stay at exactly the same position it used to
stay before parenting.

Not very nice solving of this issue: re-create derivedMesh after
re-creating EditMesh when parenting. Nicer solution would require
bigger changes and probably ful lrefactor of this tools.

9 years agoMSVC 2005 and higher supports variable length macroses, so RNA_warning can report
Sergey Sharybin [Wed, 23 Nov 2011 15:39:29 +0000 (15:39 +0000)]
MSVC 2005 and higher supports variable length macroses, so RNA_warning can report
warnings in nicer format even on msvc now.

9 years agoFix #28934: missing GLSL/icon update when changing materials used in nodes.
Brecht Van Lommel [Wed, 23 Nov 2011 15:16:41 +0000 (15:16 +0000)]
Fix #28934: missing GLSL/icon update when changing materials used in nodes.

9 years agoFixed some glitches with WeightVG modifiers:
Bastien Montagne [Wed, 23 Nov 2011 14:40:15 +0000 (14:40 +0000)]
Fixed some glitches with WeightVG modifiers:
* Added some RNA tooltips, now that they are supported by dropdown lists.
* Fixed some RNA num properties UI steps.
* Fixed a memory leak in Proximity modifier (when dm of "target" object had to be created, it wasn’t freed...).

9 years agoOSX: Fix more UTF8 issues, todo: use correct font
Jens Verwiebe [Wed, 23 Nov 2011 07:39:59 +0000 (07:39 +0000)]
OSX: Fix more UTF8 issues, todo: use correct font

9 years agoCycles: improve error reporting for opencl and cuda, showing error messages in
Brecht Van Lommel [Tue, 22 Nov 2011 20:49:33 +0000 (20:49 +0000)]
Cycles: improve error reporting for opencl and cuda, showing error messages in
viewport instead of only console.

9 years agolooking at CustomData_add_* functions - best the return valye is checked.
Campbell Barton [Tue, 22 Nov 2011 19:01:52 +0000 (19:01 +0000)]
looking at CustomData_add_* functions - best the return valye is checked.

9 years agomore minor edits to ocean sim code
Campbell Barton [Tue, 22 Nov 2011 18:51:01 +0000 (18:51 +0000)]
more minor edits to ocean sim code

9 years agoSome Dynamic Paint ui message fixes.
Miika Hamalainen [Tue, 22 Nov 2011 18:18:16 +0000 (18:18 +0000)]
Some Dynamic Paint ui message fixes.

Thanks to Lockal (irc) for noticing these.

9 years agoocean sim
Campbell Barton [Tue, 22 Nov 2011 18:03:33 +0000 (18:03 +0000)]
ocean sim
- UV's were not being calculated if there were too many VColor layers.
- precalc (omd->size * omd->spatial_size) was being called in a loop.
- use vector functions to avoid pointer indrections on each access which the compiler wont optimize - eg: och->ibufs_disp[f]->rect_float[4*(res_x*j + i) + 1]
- dont call abs() on ints (converts to double and back to int in this case).

also unrelated render buttons change. move saving options directly under the file path since these were easy to confuse with image format options like zbuf, ycc, preview.. etc.

9 years agoFix for long-standing TODO item: Clicking on overlapping nodes would activate buttons...
Lukas Toenne [Tue, 22 Nov 2011 17:49:06 +0000 (17:49 +0000)]
Fix for long-standing TODO item: Clicking on overlapping nodes would activate buttons below.

This patch adds a new CLIP_EVENTS flag for uiBlock, which will prevent the ui_but_find_mouse_over search function from looking into "lower" uiBlocks (i.e. those further back in the list). The order of block creation for nodes has also been updated to use the z-ordering (just the nodetree->nodes list).

In order for this to work, the bounding box values of the uiBlocks have to be set explicitely to fit the node size, those are usually either zero or calculated from the internal buttons.

9 years ago2.6 Various code cleanup:
Thomas Dinges [Tue, 22 Nov 2011 17:43:32 +0000 (17:43 +0000)]
2.6 Various code cleanup:
* Removed some old code for image packing, done via Operators now.
* Removed some comments.

9 years agoFix #29364: Shade Smooth button is misssing in curve object tools.
Sergey Sharybin [Tue, 22 Nov 2011 17:26:40 +0000 (17:26 +0000)]
Fix #29364: Shade Smooth button is misssing in curve object tools.

Added buttons to toolbar to control shading of curves and surfaces

9 years ago* UI Improvements for the uiTemplateImageSettings.
Thomas Dinges [Tue, 22 Nov 2011 17:14:47 +0000 (17:14 +0000)]
* UI Improvements for the uiTemplateImageSettings.

9 years agoFix #29274: problem compiling cycles opencl kernel from directory with spaces.
Brecht Van Lommel [Tue, 22 Nov 2011 16:38:58 +0000 (16:38 +0000)]
Fix #29274: problem compiling cycles opencl kernel from directory with spaces.

Some drivers don't support passing include paths with spaces in them, nor does
the opencl spec specify anything about how to quote/escape such paths, so for
now we just resolved #includes ourselves. Alternative would have been to use c
preprocessor, but this also resolves all #ifdefs, which we do not want.

9 years agoremove unnecessary switch() statement from ocean sim loop.
Campbell Barton [Tue, 22 Nov 2011 15:10:08 +0000 (15:10 +0000)]
remove unnecessary switch() statement from ocean sim loop.

9 years agoFix a crash switching from cycles to blender internal, wrong order of freeing.
Brecht Van Lommel [Tue, 22 Nov 2011 14:55:53 +0000 (14:55 +0000)]
Fix a crash switching from cycles to blender internal, wrong order of freeing.

9 years agoCamera tracking: expose progress and status from camera solver into interface
Sergey Sharybin [Tue, 22 Nov 2011 14:45:22 +0000 (14:45 +0000)]
Camera tracking: expose progress and status from camera solver into interface

Reporting progress isn't really accurate, but trying to make it more linear
can lead to spending more effort on it than having benefit. Also, changing
status in the information line helps to understand that blender isn't hang
up and solving is till working nicely.

Main changes in code:
- libmv_solveReconstruction now accepts additional parameters:

  * progress_update_callback - a function which is getting called
    from solver algorithm to report progress back to Blender.
  * callback_customdata - a user-defined context which is passing
    to progress_update_callback so progress can be updated in needed
    blender-side data structures.

  This parameters are optional.

- Added structure MovieTrackingStats which is placed in MovieTracking
  structure. It's supposed to be used for displaying information about
  different operations (currently it's only camera solver, but can be
  easily used for something else in the future) in clip editor.
  This statistics structure is getting allocated for time operator is
  working and not saving into .blend file.

- Clip Editor now displays statistics stored in MovieTrackingStats structure
  like it's done for rendering.

9 years agoCamera tracking: moved camera solver into it's own job
Sergey Sharybin [Tue, 22 Nov 2011 14:45:11 +0000 (14:45 +0000)]
Camera tracking: moved camera solver into it's own job

In some cases solving can take a while (especially when refining is used)
and keeping interface locked is a bit annoying. Now camera solver is moved
to job system and interface isn't locking.

Currently, no progress is displaying in the interface and solving can't
be canceled. It'll be implemented separately (need some changes in libmv).

9 years agoCamera tracking: refactor of tracks synchronization stuff
Sergey Sharybin [Tue, 22 Nov 2011 14:45:04 +0000 (14:45 +0000)]
Camera tracking: refactor of tracks synchronization stuff

Currently this stuff is used for 2d tracking job only, but the same
thing would necessary for camera solver job, so moved it into more
general utility stuff.

9 years agofix [#29319] bus error with python with link_append and {}
Campbell Barton [Tue, 22 Nov 2011 14:05:08 +0000 (14:05 +0000)]
fix [#29319] bus error with python with link_append and {}
patch from Emil Brink

9 years agoMerging r41937 through r42061 from trunk into soc-2011-tomato
Sergey Sharybin [Tue, 22 Nov 2011 14:04:34 +0000 (14:04 +0000)]
Merging r41937 through r42061 from trunk into soc-2011-tomato

9 years agoAdded missed file
Sergey Sharybin [Tue, 22 Nov 2011 14:00:17 +0000 (14:00 +0000)]
Added missed file

9 years agoCycles: OpenCL tweaks
Brecht Van Lommel [Tue, 22 Nov 2011 13:15:19 +0000 (13:15 +0000)]
Cycles: OpenCL tweaks
* Reduce kernel arguments size, helps compile for apple nvidia.
* Fix use of unitialized variable in displace kernel.
* Use build flags in opencl kernel md5 hash.
* Reorganize code for kernel feature #defines a bit.

9 years agoFix #29361: uv unwrap > project from view grayed out in menu.
Brecht Van Lommel [Tue, 22 Nov 2011 12:18:15 +0000 (12:18 +0000)]
Fix #29361: uv unwrap > project from view grayed out in menu.
Fix game navigation mesh panel in scene properties not showing closed by default.

9 years agoAttempted bugfix to improve behaviour of inverse calculations for ChildOf
Joshua Leung [Tue, 22 Nov 2011 11:51:12 +0000 (11:51 +0000)]
Attempted bugfix to improve behaviour of inverse calculations for ChildOf
Constraint (bones case only for now). See [#29100] for some problematic test

* It is no longer necessary to have to press "Clear Inverse" before doing "Set
Inverse" to get a reliable result. The calculation now calculates the pose with
the inverse cleared as it's "baseline" first now, which has the same result as
clearing the inverse manually first.

* Also, this commit trials a new method for computing inverses when there is
more than one constraint on the bone. Previously it just temporarily muted the
offending constraint, but kept all following constraints active, thus
potentially including their results in the inverse calculation. However, since
the inverse should only really care about what the stack looked like up to and
including when the constraint is applied, all constraints starting from this one
onwards are now disabled when calculating the inverse.  PLEASE TEST!!! In the
few tests I've done, the effects appear minimal, but this may be quite an issue
in the wild

9 years agofix for [#29355] clone-brush in texture paint
Campbell Barton [Tue, 22 Nov 2011 11:37:17 +0000 (11:37 +0000)]
fix for [#29355] clone-brush in texture paint

but was caused by cycles code, noticed it was also doing a render engine string lookup & flag check per pixel (tsk tsk), result is now cached.

9 years agoFix #29358: Feature "trackness" property misnamed
Sergey Sharybin [Tue, 22 Nov 2011 10:42:48 +0000 (10:42 +0000)]
Fix #29358: Feature "trackness" property misnamed

Rename property Trackness to Trackability

9 years ago- use cache_ as a prefix for new modifiers.
Campbell Barton [Tue, 22 Nov 2011 10:04:28 +0000 (10:04 +0000)]
- use cache_ as a prefix for new modifiers.
- some comments to recent image changes.

9 years agoReverting part of the previous i18n font update: arabic is back to droidsans font...
Bastien Montagne [Tue, 22 Nov 2011 07:40:01 +0000 (07:40 +0000)]
Reverting part of the previous i18n font update: arabic is back to droidsans font, with missing Persian glyphs (turned out there were only two). Thanks to Yousef (bat3a), Amin (loemoon) and Dalai (dfelinto). [The draw back is, other arabic-familly languages might miss other glyphs... but we’ll adress this in due time, if needed!]
Same added devanagari (for Nepali, but used also by Hindi...) from Samyak-devanagari font...

9 years agorename image type defines to be less ambiguous, also set BMP as not supporting alpha...
Campbell Barton [Tue, 22 Nov 2011 00:35:26 +0000 (00:35 +0000)]
rename image type defines to be less ambiguous, also set BMP as not supporting alpha (it reads but cant write)

9 years agofix for blenderplayer build
Dalai Felinto [Tue, 22 Nov 2011 00:35:22 +0000 (00:35 +0000)]
fix for blenderplayer build

9 years agoMore UI messages fixes and tweaks (found while translating in french).
Bastien Montagne [Tue, 22 Nov 2011 00:14:59 +0000 (00:14 +0000)]
More UI messages fixes and tweaks (found while translating in french).

9 years agodisplay quality for avijpeg, name BKE_imtype functions more sensibly
Campbell Barton [Tue, 22 Nov 2011 00:06:54 +0000 (00:06 +0000)]
display quality for avijpeg, name BKE_imtype functions more sensibly

9 years agoi18n update:
Bastien Montagne [Mon, 21 Nov 2011 23:57:09 +0000 (23:57 +0000)]
i18n update:
*Update of i18n font, arabic should be more complete (now using DejaVuSans version), added devanagari (for Nepali, but used also by Hindi...) from Samyak-devanagari font...
*Enable Nepali translation, as it now has a font to display!

9 years agoimage save operator now shares settings and UI with render & image out node.
Campbell Barton [Mon, 21 Nov 2011 23:56:32 +0000 (23:56 +0000)]
image save operator now shares settings and UI with render & image out node.

- setting format options from python isnt possible anymore since this isnt exposed via op->properties, python should use function instead.
- image save UI now hides 'Relative' option when copy is selected since it has no effect.
- default image depth is set to 8 or more if the image has no float buffer, otherwise its set to 32 or less.

other fixes:
- image new was adding an image with a filepath set to "untitled", if this file happened to exist in the current directory a save on the generated image would overwrite it, now initialize to empty path.
- BKE_ftype_to_imtype was returning an invalid value if ftype==0.

9 years agoreplace ImBuf.depth with ImBuf.planes to match ImageFormatData.planes & to avoid...
Campbell Barton [Mon, 21 Nov 2011 20:47:19 +0000 (20:47 +0000)]
replace ImBuf.depth with ImBuf.planes to match ImageFormatData.planes & to avoid confusion with ImageFormatData.depth

9 years agoCamera tracking: code cleanup
Sergey Sharybin [Mon, 21 Nov 2011 20:43:25 +0000 (20:43 +0000)]
Camera tracking: code cleanup

9 years agoJust another typo in recent commit.
Sergey Sharybin [Mon, 21 Nov 2011 20:39:06 +0000 (20:39 +0000)]
Just another typo in recent commit.

9 years agomove image settings into their own structure so the interface can be shared where...
Campbell Barton [Mon, 21 Nov 2011 20:19:58 +0000 (20:19 +0000)]
move image settings into their own structure so the interface can be shared where image saving settings are needed.
currently file out node and render output share this struct & UI.

9 years agoOops, forgot to remove this unused variable
Sergey Sharybin [Mon, 21 Nov 2011 20:09:04 +0000 (20:09 +0000)]
Oops, forgot to remove this unused variable

9 years agosilly bug in copying game properties between linked objects - reported on BlenderArti...
Dalai Felinto [Mon, 21 Nov 2011 20:08:16 +0000 (20:08 +0000)]
silly bug in copying game properties between linked objects - reported on BlenderArtists by Bananaft
I guess I copied/pasted the original loop code blindly.

9 years agoFixed threading issue when tracking several tracks
Sergey Sharybin [Mon, 21 Nov 2011 19:54:47 +0000 (19:54 +0000)]
Fixed threading issue when tracking several tracks

Issue was caused by using and changing clip user from tracking context.

9 years agoCombined BlenderPro Brazil workshop fix + Patch 29302
Ton Roosendaal [Mon, 21 Nov 2011 17:14:44 +0000 (17:14 +0000)]
Combined BlenderPro Brazil workshop fix + Patch 29302

Loopcut operator now has two extra features:
- Pad plus/minus allows to change amount of cuts
- typing numerical input works too.

(Number input max is set to 32 now. The code doesn't allow editing
values or backspace it away, nor does it show in header...)

Thanks & congrats Daniel Macedo for his first patch! :)

9 years agoLast part of camera tracking names cleanup: bundles -> 3d markers
Sergey Sharybin [Mon, 21 Nov 2011 17:05:27 +0000 (17:05 +0000)]
Last part of camera tracking names cleanup: bundles -> 3d markers

9 years agoCycles:
Brecht Van Lommel [Mon, 21 Nov 2011 16:28:19 +0000 (16:28 +0000)]
* Fix #29354: crash on branch file. Note that for best compatibility, you need
  to save your files with one of the latest branch builds, since not all version
  patching code was moved to trunk.
* Rename "Cycles" to "Cycles Render" in info header menu.
* Code tweaks to try to fix #29301. It's not a real solution though, I'm thinking
  cause is extended precision for floats on some cpu's, used in one case but not
  in the other, leading to bounding box intersection issue...

9 years agoFix #29348: subsurf modifier causing mesh to draw slower than with modifier
Brecht Van Lommel [Mon, 21 Nov 2011 14:59:26 +0000 (14:59 +0000)]
Fix #29348: subsurf modifier causing mesh to draw slower than with modifier
applied in some cases, due to more opengl state switching. There are still
some differences in performance, but that's expected due to different opengl
draw commands used.

9 years agoFix #29333: issue with modal keymap saving.
Brecht Van Lommel [Mon, 21 Nov 2011 14:52:05 +0000 (14:52 +0000)]
Fix #29333: issue with modal keymap saving.

9 years agoalso list addons_extern as testing.
Campbell Barton [Mon, 21 Nov 2011 14:19:34 +0000 (14:19 +0000)]
also list addons_extern as testing.

9 years agominor edits to error printing, also print the proprty identifier for rna property...
Campbell Barton [Mon, 21 Nov 2011 14:03:10 +0000 (14:03 +0000)]
minor edits to error printing, also print the proprty identifier for rna property errors.

9 years agoFix #29347: enum tooltip crash that showed up with recent changes.
Brecht Van Lommel [Mon, 21 Nov 2011 12:45:48 +0000 (12:45 +0000)]
Fix #29347: enum tooltip crash that showed up with recent changes.
Patch by Dan Eicher.

9 years agofix [#29337] Duplicate long shapekey names crash Blender
Campbell Barton [Mon, 21 Nov 2011 11:53:29 +0000 (11:53 +0000)]
fix [#29337] Duplicate long shapekey names crash Blender
- added BLI_strncat_utf8.
- ensure resulting strings are valid utf8.

9 years agoYet another fix for crashes when drawing empty base mesh with constructive modifier...
Lukas Toenne [Mon, 21 Nov 2011 11:46:05 +0000 (11:46 +0000)]
Yet another fix for crashes when drawing empty base mesh with constructive modifier. This crashed with ocean modifier (#29241). The previous fix was to avoid drawing mapped faces altogether for empty edit mesh, but that also disables the actual derived mesh display (#29346).

The real reason for this crash is that ocean modifier (in generative setting) does not properly set the derived mesh face ORIGINDEX data to ORIGINDEX_NONE. With this the previous fixes are not necessary.

9 years agoRemove sensor height from Sony A55 preset.
Sergey Sharybin [Sun, 20 Nov 2011 17:09:54 +0000 (17:09 +0000)]
Remove sensor height from Sony A55 preset.
Sensor height isn't supported by motion tracking yet.

9 years agoFix for crasher when node group tree datablocks are missing.
Lukas Toenne [Sun, 20 Nov 2011 16:57:50 +0000 (16:57 +0000)]
Fix for crasher when node group tree datablocks are missing.

9 years agoMuting node patch: second part. Also fix [#27636] Muting shading nodes is ignored
Bastien Montagne [Sun, 20 Nov 2011 16:38:23 +0000 (16:38 +0000)]
Muting node patch: second part. Also fix [#27636] Muting shading nodes is ignored

Now, compositing, shading and texture nodes have a consistent muting system, with default behaving as previous (for compo), and which can be optionaly customized by each node.
Shader nodes are also GLSL muted.

However, Cycles is currently unaware of muted nodes, will try to address this…

9 years agoTag unused variable in recent nodes commit.
Sergey Sharybin [Sun, 20 Nov 2011 16:26:42 +0000 (16:26 +0000)]
Tag unused variable in recent nodes commit.

9 years agoFix #29295: Problem with Alpha Channel video in Sequencer and textures
Sergey Sharybin [Sun, 20 Nov 2011 16:26:37 +0000 (16:26 +0000)]
Fix #29295: Problem with Alpha Channel video in Sequencer and textures

Bug was caused by workaround for old versions of FFmpeg which aren't supported
anymore due to pts stuff.

Removing workarounds for alpha channels.

9 years agoFix compilation error with oceansim disabled
Sergey Sharybin [Sun, 20 Nov 2011 16:21:49 +0000 (16:21 +0000)]
Fix compilation error with oceansim disabled

9 years agoMuting node patch: first part
Bastien Montagne [Sun, 20 Nov 2011 16:13:27 +0000 (16:13 +0000)]
Muting node patch: first part

This allows node type init code to have access to the nodetree type object (needed to allow generic muting node initialization). Huge and boring edits...

9 years ago== Sequencer / FFMPEG ==
Peter Schlaile [Sun, 20 Nov 2011 16:08:56 +0000 (16:08 +0000)]
== Sequencer / FFMPEG ==

This fixed two issues:

* RAW DV-seeking has to be done using DTS. Sounds silly, but ffmpeg
  tracks internal state in RAW DV format decoder and runs mad, if
  we seek by byte. Don't know, why I haven't noticed that, when I
  added it.

* real fix(tm) for #29295
  problem was: we did AVFrame read ahead, and the pattern
  read_frame -> decode -> read_frame -> do color conversion of first frame
  works everywhere but RAW RGB-files which do some pointer shuffling
  within ffmpeg to save a memcpy...

  I removed read ahead completely, since it didn't work like originally
  intented. Might come back later, but the original purpose (making
  resyncing easier if we are completely lost in stream) it never