blender.git
6 years agoFix broken example, reported by Codemanx on IRC, thanks.
Bastien Montagne [Sun, 29 Sep 2013 14:57:47 +0000 (14:57 +0000)]
Fix broken example, reported by Codemanx on IRC, thanks.

6 years agoFix [#36847] If Force Field in Ridgid Body group, crash at first frame of animation...
Bastien Montagne [Sun, 29 Sep 2013 13:38:56 +0000 (13:38 +0000)]
Fix [#36847] If Force Field in Ridgid Body group, crash at first frame of animation on playback

Not all objects in RB group actually have a "rigid body object", needs to be checked.

6 years agoFix [#36830] 'Reset to Default Value' on Current Area Type button causes crash
Bastien Montagne [Sun, 29 Sep 2013 13:25:42 +0000 (13:25 +0000)]
Fix [#36830] 'Reset to Default Value' on Current Area Type button causes crash

Default default value for space types (0, i.e. SPACE_EMPTY) is not valid, use SPACE_VIEW3D instead.

6 years agoname cocoa functions in keeping with convention with similar functions for other...
Campbell Barton [Sun, 29 Sep 2013 13:14:09 +0000 (13:14 +0000)]
name cocoa functions in keeping with convention with similar functions for other ghost classes.

6 years agoOSX: more descriptive comment
Jens Verwiebe [Sun, 29 Sep 2013 10:11:49 +0000 (10:11 +0000)]
OSX: more descriptive  comment

6 years agoOSX: cleanup for 60409, let m_window protected and use rather a public function for...
Jens Verwiebe [Sun, 29 Sep 2013 10:00:34 +0000 (10:00 +0000)]
OSX: cleanup for 60409, let m_window protected and use rather a public function for getting it public

6 years agoFix [#36841] UV-Maps cannot be renamed in EditMode
Bastien Montagne [Sun, 29 Sep 2013 06:47:07 +0000 (06:47 +0000)]
Fix [#36841] UV-Maps cannot be renamed in EditMode

Own error in r60260, in edit mode we need to use bmesh's cdata!

6 years agominor edit on r60413, convert to a bool.
Campbell Barton [Sun, 29 Sep 2013 02:07:48 +0000 (02:07 +0000)]
minor edit on r60413, convert to a bool.

6 years agoFix [#36845] New generated blank image doesn't update preview (properties editor)
Thomas Dinges [Sat, 28 Sep 2013 20:04:49 +0000 (20:04 +0000)]
Fix [#36845] New generated blank image doesn't update preview (properties editor)

* IMAGE_OT_NEW did not had a notifier yet for some weird reason.

6 years agoProperties Editor / UI:
Thomas Dinges [Sat, 28 Sep 2013 19:56:08 +0000 (19:56 +0000)]
Properties Editor / UI:
* Fix a py error in the "Image Sampling" panel, tex.image can be NULL.

6 years agoFix [#36831] Grease Pencil dont create a drawing in current frame less than 1
Bastien Montagne [Sat, 28 Sep 2013 19:28:41 +0000 (19:28 +0000)]
Fix [#36831] Grease Pencil dont create a drawing in current frame less than 1

Only forbid negframes when user has not allowed them in whole Blender (userpref, editing). Else, it's more than annoying to not be able to draw negframed gpencil.

6 years agoOSX/Scons/OMP: 1. Allow for compile with gnu gcc 4.8.1, 2. fix compiling with sdk...
Jens Verwiebe [Sat, 28 Sep 2013 18:42:14 +0000 (18:42 +0000)]
OSX/Scons/OMP: 1. Allow for compile with gnu gcc 4.8.1, 2. fix compiling with sdk > 10.7 by using libgomp dynamic, which includes proper errorhandling vs. static. Before xtra linking to system libstdc++.6.dylib was needed, which then caused incompatibilities

6 years agoOSX: make sure closing the mainwindow forewards to the quitdialog - todo: check if...
Jens Verwiebe [Sat, 28 Sep 2013 17:55:22 +0000 (17:55 +0000)]
OSX: make sure closing the mainwindow forewards to the quitdialog - todo: check if m_window now public is a problem

6 years agoadd PoseBone.children convenience attribute.
Campbell Barton [Sat, 28 Sep 2013 12:05:59 +0000 (12:05 +0000)]
add PoseBone.children convenience attribute.

6 years agoFix [#36827] 2.69 bug with smoke domain, particle emitter and a force field causes...
Bastien Montagne [Sat, 28 Sep 2013 05:06:02 +0000 (05:06 +0000)]
Fix [#36827] 2.69 bug with smoke domain, particle emitter and a force field causes a crash

fuel array might be null!

6 years agoFix #36826: make screencast with quicktime output gave black flickering areas.
Brecht Van Lommel [Fri, 27 Sep 2013 20:29:07 +0000 (20:29 +0000)]
Fix #36826: make screencast with quicktime output gave black flickering areas.
Problem was OpenGL buffer alpha channel, it's not used in most places and so
not set to any meaningful value while drawing.

6 years agoFix build error when building without OpenMP.
Brecht Van Lommel [Fri, 27 Sep 2013 19:44:06 +0000 (19:44 +0000)]
Fix build error when building without OpenMP.

6 years agoFix #35684: cycles unable to use full 6GB of memory on NVidia Titan GPU. We now
Brecht Van Lommel [Fri, 27 Sep 2013 19:09:31 +0000 (19:09 +0000)]
Fix #35684: cycles unable to use full 6GB of memory on NVidia Titan GPU. We now
use arrays instead of textures for general storage on this card (image textures
are still stored as texture). Textures were found to be faster on older cards,
but the limits on 1D texture size have not increased along with the memory size,
which meant that the full 6 GB could not be used.

The performance actually seems to be slightly better with arrays in some tests
on Titan. For older cards there seems to be a bit of a mix, some are better and
others not. We may change those to use arrays too, but more testing is needed,
only Titan and Tesla K20 (sm_35) is changed for now.

The fact that arrays are faster is a bit surprising, as others found textures
to be faster on Kepler. However even if they were, the memory limitation is
more important to solve anyway.
https://research.nvidia.com/publication/understanding-efficiency-ray-traversal-gpus-kepler-and-fermi-addendum

6 years agoElbeem: fix memory leak and add guarded allocator directives
Sergey Sharybin [Fri, 27 Sep 2013 18:55:26 +0000 (18:55 +0000)]
Elbeem: fix memory leak and add guarded allocator directives

6 years agoElbeem: Use pragma directive instead of overriding number of omp threads
Sergey Sharybin [Fri, 27 Sep 2013 18:55:15 +0000 (18:55 +0000)]
Elbeem: Use pragma directive instead of overriding number of omp threads

Global OpenMP threads override is not a good idea because this would affect
all possible OpenMP blocks running at the same time as simulation.

And that was actually a big on restoring number of threads: code needed to
store current number of threads, not maximal one.

6 years agoblenderplayer stubs for WM_keymap_remove
Dalai Felinto [Fri, 27 Sep 2013 16:58:34 +0000 (16:58 +0000)]
blenderplayer stubs for WM_keymap_remove
(reported by Thomas Dinges on irc)

6 years agoreplace ints with bools for keymap functions.
Campbell Barton [Fri, 27 Sep 2013 14:27:01 +0000 (14:27 +0000)]
replace ints with bools for keymap functions.

6 years agorna: implementing function to remove keymap from keyconfig
Dalai Felinto [Fri, 27 Sep 2013 14:05:07 +0000 (14:05 +0000)]
rna: implementing function to remove keymap from keyconfig

Thanks Campbell Barton for reviewing.

6 years agoinstall_deps.sh fix: add explicit OGG lib handling, we need it to pass correct values...
Bastien Montagne [Fri, 27 Sep 2013 13:56:16 +0000 (13:56 +0000)]
install_deps.sh fix: add explicit OGG lib handling, we need it to pass correct values for ffmpeg libraries (at least for static builds).

I’m not close to understand why this has worked fine until today... :/

Only tested with Debian, but I would not expect any issue with Fedora/Suse/Arch, this is a quite simple change!

6 years agoFix #36630, Particlesystem - boids - goal - collision.
Lukas Toenne [Fri, 27 Sep 2013 13:45:47 +0000 (13:45 +0000)]
Fix #36630, Particlesystem - boids - goal - collision.
Problem was introduced with r54648, which determined the initial interval for the Newton-Raphson method using the "total_time" of the collision - but this info is only defined for regular collisions, not
for the raycasting used in boids to find the "ground object". To ensure correct behavior, now clear the collision info before using it (good practice in any case), then check the inv_total_time variable
and use the standard 0.001 step if not defined.

6 years agorelating to [#36822], apply clamping to hard limits too
Campbell Barton [Fri, 27 Sep 2013 11:06:33 +0000 (11:06 +0000)]
relating to [#36822], apply clamping to hard limits too

6 years agoFix for #36823, SSS node now displays a warning, that it does not work on the GPU.
Thomas Dinges [Fri, 27 Sep 2013 10:53:55 +0000 (10:53 +0000)]
Fix for #36823, SSS node now displays a warning, that it does not work on the GPU.

6 years agoFix [#36822], Sky Turbidity values > 10 could result in weird behavior and crashes...
Thomas Dinges [Fri, 27 Sep 2013 10:26:00 +0000 (10:26 +0000)]
Fix [#36822], Sky Turbidity values > 10 could result in weird behavior and crashes with the new sky model.

Soft UI range is 10 already, now clamp inside the code as well.

6 years agoFix related #36824: Shrinkwrap modifier 'Subsurf Levels' doesn't seem to do anything
Sergey Sharybin [Fri, 27 Sep 2013 09:51:02 +0000 (09:51 +0000)]
Fix related #36824: Shrinkwrap modifier 'Subsurf Levels' doesn't seem to do anything

Subsurf Levels only makes sense when using Projection mode,
so moved this option into if mode == 'PROJECTION' branch.

6 years agoMade PIL_time_utildefines self-sufficient
Sergey Sharybin [Thu, 26 Sep 2013 21:27:23 +0000 (21:27 +0000)]
Made PIL_time_utildefines self-sufficient

Meaning it's enough to only include PIL_time_utildefines for
benchmarking, no need to worry about other header dependencies.

6 years agoFix for Freestyle hang up in stroke rendering, due to missing update of 2D stroke...
Tamito Kajiyama [Thu, 26 Sep 2013 20:14:29 +0000 (20:14 +0000)]
Fix for Freestyle hang up in stroke rendering, due to missing update of 2D stroke length in StorkeCleaner.
Problem report by Light BWK through personal communications, thanks!

6 years agoFix for the name of line style ID blocks, from "FreestyleLineStyle" to "Line Style".
Tamito Kajiyama [Thu, 26 Sep 2013 16:41:47 +0000 (16:41 +0000)]
Fix for the name of line style ID blocks, from "FreestyleLineStyle" to "Line Style".

6 years agoFreestyle: remove a bunch of debug prints in the python code, these are confusing
Brecht Van Lommel [Thu, 26 Sep 2013 16:29:54 +0000 (16:29 +0000)]
Freestyle: remove a bunch of debug prints in the python code, these are confusing
and don't give any meaningful info to users.

6 years agoquiet warnings (converting pointer to boolean)
Campbell Barton [Thu, 26 Sep 2013 10:35:41 +0000 (10:35 +0000)]
quiet warnings (converting pointer to boolean)

6 years agoUse the brush icon rather than the particle icon for ID-block type of Freestyle line...
Irie Shinsuke [Thu, 26 Sep 2013 07:55:55 +0000 (07:55 +0000)]
Use the brush icon rather than the particle icon for ID-block type of Freestyle line style, though that's still workaround.
We need a proper icon representing Freestyle line style.

6 years agoFix cycles issue with mapping node rotation and scale order. When using both
Brecht Van Lommel [Wed, 25 Sep 2013 20:28:49 +0000 (20:28 +0000)]
Fix cycles issue with mapping node rotation and scale order. When using both
scale and rotation in mapping node, there would be shearing, and the only way
to avoid that was to add 2 mapping nodes. This is because to transform the
texture, the inverse transform needs to be done on the texture coordinate

Now the mapping node has Texture/Point/Vector/Normal types to transform the
vector for a particular purpose. Point is the existing behavior, Texture is
the new default that behaves more like you might expect.

6 years agoDon't install LICENSE-bmonofont-i18n.ttf.txt unless international fonts are enabled.
Irie Shinsuke [Wed, 25 Sep 2013 19:18:28 +0000 (19:18 +0000)]
Don't install LICENSE-bmonofont-i18n.ttf.txt unless international fonts are enabled.

6 years agocmake - cached LLVM values would be overwritten on every execution.
Campbell Barton [Wed, 25 Sep 2013 17:04:01 +0000 (17:04 +0000)]
cmake - cached LLVM values would be overwritten on every execution.

6 years agorename LLVM_LIB_DIR to LLVM_LIBPATH to match other cmake vars.
Campbell Barton [Wed, 25 Sep 2013 16:31:54 +0000 (16:31 +0000)]
rename LLVM_LIB_DIR to LLVM_LIBPATH to match other cmake vars.

6 years agoknife was projecting vertex locations to the screen when it wasnt needed.
Campbell Barton [Wed, 25 Sep 2013 11:38:30 +0000 (11:38 +0000)]
knife was projecting vertex locations to the screen when it wasnt needed.

6 years agofix error where BKE_mesh_cd_validate layer renaming would use invalid index values...
Campbell Barton [Wed, 25 Sep 2013 11:11:41 +0000 (11:11 +0000)]
fix error where BKE_mesh_cd_validate layer renaming would use invalid index values. from r60260
also correct some comments.

6 years agoAdd font licenses to installation files
Sergey Sharybin [Wed, 25 Sep 2013 08:35:43 +0000 (08:35 +0000)]
Add font licenses to installation files

So now release archive will have this files included.

6 years agofix [#36780] Knife Project broken
Campbell Barton [Wed, 25 Sep 2013 08:23:31 +0000 (08:23 +0000)]
fix [#36780] Knife Project broken
was regression in r59665 (fix for [#35002]).

now when checking a segment that lies on the same plane as the triangle intersects,
clip the segment by the triangle bounds so we know the points remain inside the triangle.

6 years agofix for crash freeing console history.
Campbell Barton [Tue, 24 Sep 2013 17:11:55 +0000 (17:11 +0000)]
fix for crash freeing console history.

6 years agoFix #36695, brushes would behave differently in scaled objects (tested
Antony Riakiotakis [Tue, 24 Sep 2013 15:17:57 +0000 (15:17 +0000)]
Fix #36695, brushes would behave differently in scaled objects (tested
by applying scale). It looks that only layer brush needs this
correction.

6 years agoCMake: BOOST is a dependency of OpenImageIO
Dalai Felinto [Tue, 24 Sep 2013 15:16:46 +0000 (15:16 +0000)]
CMake: BOOST is a dependency of OpenImageIO

6 years agobmesh triangulate: skip intersection checks for degenerate geometry and just triangul...
Campbell Barton [Tue, 24 Sep 2013 12:45:14 +0000 (12:45 +0000)]
bmesh triangulate: skip intersection checks for degenerate geometry and just triangulate on a fixed loop.

6 years agopostpone crazy-space changes until next release, causes issues with extrude which...
Campbell Barton [Tue, 24 Sep 2013 12:43:25 +0000 (12:43 +0000)]
postpone crazy-space changes until next release, causes issues with extrude which need further fixes.

6 years agofix [#36781] triangulation modifer creases
Campbell Barton [Tue, 24 Sep 2013 03:58:19 +0000 (03:58 +0000)]
fix [#36781] triangulation modifer creases
new geometry was initializing its original index to 0 (so all edges displayed with the first edges crease value).
now initialize to NONE.

6 years agoallocate bmesh data from known sizes where possible (was still using defaults in...
Campbell Barton [Tue, 24 Sep 2013 03:31:00 +0000 (03:31 +0000)]
allocate bmesh data from known sizes where possible (was still using defaults in places),
add macros for initializing BMAllocTemplate's, also add assert on invalid use of bmesh_sfme()

6 years agoadd back crazy space check to only initialize a vertex once. (changed in r60146 cause...
Campbell Barton [Tue, 24 Sep 2013 02:16:52 +0000 (02:16 +0000)]
add back crazy space check to only initialize a vertex once. (changed in r60146 caused bug [#36803])

6 years agomodifiers_isCorrectableDeformed now checks a modifier is enabled before returning...
Campbell Barton [Tue, 24 Sep 2013 00:56:47 +0000 (00:56 +0000)]
modifiers_isCorrectableDeformed now checks a modifier is enabled before returning true,
also check deformMatricesEM callback for modifier_isCorrectableDeformed() rather then checking modifier types.

6 years agoFix #36783: click outside splash screen to close it would not highlight the
Brecht Van Lommel [Mon, 23 Sep 2013 23:31:42 +0000 (23:31 +0000)]
Fix #36783: click outside splash screen to close it would not highlight the
button under the mouse, and so clicking the button failed without first
moving the mouse. Similar issues could happen with popups and switching
windows.

The problem is that a notifier was being used to deactivate possible other
activated buttons, but as notifiers are delayed it could undo the correct
activation too. If anyone notices hanging tooltips or other issues after this
fix, please report them.

6 years agoFix #36793: missing update on undo with proxy object that is not using a proxy group.
Brecht Van Lommel [Mon, 23 Sep 2013 21:55:56 +0000 (21:55 +0000)]
Fix #36793: missing update on undo with proxy object that is not using a proxy group.

6 years agoFix #36800: closing render window during render crashes, the operator would be
Brecht Van Lommel [Mon, 23 Sep 2013 19:35:21 +0000 (19:35 +0000)]
Fix #36800: closing render window during render crashes, the operator would be
cancelled before the job, causing invalid access to op->reports in the job thread.

6 years agoFix related to #36319: restore SDL_VIDEODRIVER=dummy environment variable, it
Brecht Van Lommel [Mon, 23 Sep 2013 14:48:28 +0000 (14:48 +0000)]
Fix related to #36319: restore SDL_VIDEODRIVER=dummy environment variable, it
seems that somehow not having this is causing keyboard events to be caught by
SDL. This was removed because it broke addons that could use SDL, now set the
environment variable only temporary during SDL initialization.

This may have been causing issues with keyboard events getting missed in the
game engine, but I couldn't confirm the issue here.

6 years agotypos on error messages in CMake
Dalai Felinto [Mon, 23 Sep 2013 13:21:27 +0000 (13:21 +0000)]
typos on error messages in CMake

6 years agoFurther fix for #36382: bake buttons for linked objects could be grayed out
Brecht Van Lommel [Mon, 23 Sep 2013 12:14:06 +0000 (12:14 +0000)]
Further fix for #36382: bake buttons for linked objects could be grayed out
when they shouldn't be.

6 years agoMinor cleanup for own commit, removed unused line.
Lukas Toenne [Mon, 23 Sep 2013 08:57:46 +0000 (08:57 +0000)]
Minor cleanup for own commit, removed unused line.

6 years agoFix #36790, OSL point parameters of shader nodes not initialized correctly from UI...
Lukas Toenne [Mon, 23 Sep 2013 08:57:02 +0000 (08:57 +0000)]
Fix #36790, OSL point parameters of shader nodes not initialized correctly from UI inputs.
normal and point parameter types of OSL shaders are creating SOCK_VECTOR sockets in the script node. When these sockets are in turn used to define the fixed input values for these parameters they get
converted as OSL vector always, losing the distinction of vector/normal/point. To prevent OSL rejecting the value due to type mismatch, explicitly define the parameter defaults in the OSL script node
compiler function as vector, normal and point (unused types will simply be ignored).

6 years agoFix #36797 make linked node groups local does not work. Node tree library functions...
Lukas Toenne [Mon, 23 Sep 2013 08:20:16 +0000 (08:20 +0000)]
Fix #36797 make linked node groups local does not work. Node tree library functions where missing the ntreeMakeLocal entry, was still marked as 'not implemented'.

6 years agoFix potential usage of wrong track when setting axis for scene orientation
Sergey Sharybin [Mon, 23 Sep 2013 08:04:55 +0000 (08:04 +0000)]
Fix potential usage of wrong track when setting axis for scene orientation

6 years agoFix [#36791]: Fire ignores force fields when smoke is set to 0.0
Miika Hamalainen [Sun, 22 Sep 2013 16:09:31 +0000 (16:09 +0000)]
Fix [#36791]: Fire ignores force fields when smoke is set to 0.0

6 years agostyle cleanup: whitespace & odd indentation
Campbell Barton [Sat, 21 Sep 2013 10:46:58 +0000 (10:46 +0000)]
style cleanup: whitespace & odd indentation

6 years agoFix [#36788] changing the built in keying set prints "attempt to free NULL pointer...
Bastien Montagne [Sat, 21 Sep 2013 07:37:11 +0000 (07:37 +0000)]
Fix [#36788] changing the built in keying set prints "attempt to free NULL pointer" to console.

6 years agobugfix: [#36786] customdata layers are not merging taken the names into consideration
Dalai Felinto [Sat, 21 Sep 2013 05:42:34 +0000 (05:42 +0000)]
bugfix: [#36786] customdata layers are not merging taken the names into consideration
(which is also "[#36749] Joining objects with more than one uv map depends on list order")

Thanks Bastien Montagne and Brecht van Lommel for reviewing and some advice.

6 years agoOSX/scons: fix linking errors due bf_intern_ghostndof3dconnexion was build even if...
Jens Verwiebe [Fri, 20 Sep 2013 18:52:39 +0000 (18:52 +0000)]
OSX/scons: fix linking errors due bf_intern_ghostndof3dconnexion was build even if no 3Dmouseware was detected

6 years agoText Editor: 'Find' (in the Edit menu) was pointing to the wrong operator
Dalai Felinto [Fri, 20 Sep 2013 18:47:12 +0000 (18:47 +0000)]
Text Editor: 'Find' (in the Edit menu) was pointing to the wrong operator

6 years agobugfix [#36724] Ctrl+F in text editor opens Toolbar, but no longer closes it
Dalai Felinto [Fri, 20 Sep 2013 18:36:49 +0000 (18:36 +0000)]
bugfix [#36724] Ctrl+F in text editor opens Toolbar, but no longer closes it

(added Ctrl+P as a toggle to show Properties)

6 years agoMark Mesh->tface as DNA_DEPRECATED
Sergey Sharybin [Fri, 20 Sep 2013 13:22:45 +0000 (13:22 +0000)]
Mark Mesh->tface as DNA_DEPRECATED

It already had deprecated comment, but now it also uses
compiler flag just to be sure no one uses this guy.

6 years agoLet vertex bevel work on boundary verts of polys.
Howard Trickey [Fri, 20 Sep 2013 12:50:34 +0000 (12:50 +0000)]
Let vertex bevel work on boundary verts of polys.
Suggestion by Jonathan Williamson, and thanks to
Walid Shouman for noticing that the existing code
worked if a test to prohibit it were removed.

Limitation: treats segments > 1 the same as
segments == 1 in this case; a TODO to do
something more intelligent.

6 years agoFIX: [#27536] GLSL object space normal maps have wrong shading
Andrea Weikert [Fri, 20 Sep 2013 11:55:43 +0000 (11:55 +0000)]
FIX: [#27536] GLSL object space normal maps have wrong shading

Added object and world space for normal map in GLSL view.

6 years agoFix [#36759] UV Project - Specified UV Map doesnt work properly
Bastien Montagne [Fri, 20 Sep 2013 11:14:08 +0000 (11:14 +0000)]
Fix [#36759] UV Project - Specified UV Map doesnt work properly

In fact, the issue was that names of mloopuv/mtespoly layers could very easily get out of sync (a simple rename was enough), while most tools (such as the UVProject modifier) expect matching layers to have the same name!

Now matching names are check on load, and renaming of a layer through RNA is guaranted to be synchronized with its counterparts.

Thanks to Brecht & Campbell for reviews.

6 years agoImages didn't get clear when using multires baker from python script
Sergey Sharybin [Fri, 20 Sep 2013 10:14:58 +0000 (10:14 +0000)]
Images didn't get clear when using multires baker from python script

Seems to be a regression since BMesh merge.

6 years agoClear color to gray when baking displacement map
Sergey Sharybin [Fri, 20 Sep 2013 10:14:54 +0000 (10:14 +0000)]
Clear color to gray when baking displacement map

This makes more sense to have no displacement if baking
non-normalized displacement map or have mid-level displacement
(which is likely be close to no displacement as well) when
baking normalized displacement.

In any way it's better than using default black color.

6 years agoFix for margin which didn't work properly with normalized displacement baking
Sergey Sharybin [Fri, 20 Sep 2013 09:28:58 +0000 (09:28 +0000)]
Fix for margin which didn't work properly with normalized displacement baking

6 years agoFix for displacement bake buffer might be allocated twice
Sergey Sharybin [Fri, 20 Sep 2013 09:28:52 +0000 (09:28 +0000)]
Fix for displacement bake buffer might be allocated twice

Issue was caused by missing NULL-pointer check in user-data
initialization.

This issue might have lead to wrong displacement map being
baked.

6 years agoFix #36226, Select Linked works not in touch with Prefs.
Lukas Toenne [Fri, 20 Sep 2013 09:10:17 +0000 (09:10 +0000)]
Fix #36226, Select Linked works not in touch with Prefs.
When setting keymap properties to values equalling the RNA default, they will
get "unset" and automatic operator behavior is used. There is no way to
explicitly set the default value as a user.

1) To allow distinguishing uninitialized (not set) properties in the keymap
items, a few changes to the RNA struct comparison function are needed: Instead
of allowing only strict/non-strict comparison of 2 properties A and B in a
struct, this now has 3 modes:
* STRICT: compare only the actual property values (same as 'strict' before)
* UNSET_MATCH_ANY: if either A or B is unset, consider them a match (same as
non-strict before)
* UNSET_MATCH_NONE: if one property is set and the other not, consider them a
mismatch.

The new UNSET_MATCH_NONE mode is useful for keymaps, because it allows keeping
user-defined property values in the keymap even if they match the default
property value (see wm_keymap_diff function in wm_keymap.c)

2) A new operator is added for unsetting ID properties in the RMB context menu
and in user preferences next to keymap properties. This only works on ID
properties and deletes the ID property storage, so that the default value is used.

In the user preferences for keymaps the properties are shown in an inactive
layout to indicate that the default value is used (which some operators such as
the "select linked" op from the report use to trigger automatic behavior). When
the user sets a property it gets set and stays that way until explicitly "unset"
using the new operator.

6 years agocode cleanup: quiet rna warnings, remove remove_strict_flags() for cmake/rna.
Campbell Barton [Fri, 20 Sep 2013 06:35:28 +0000 (06:35 +0000)]
code cleanup: quiet rna warnings, remove remove_strict_flags() for cmake/rna.

also set_source_files_properties() wasn't working for rna_*_gen.c files,
set dna.c and generated data files with generated property too.

6 years agofix for nla-strip-path function not returning an allocated pointer and new mask funct...
Campbell Barton [Fri, 20 Sep 2013 06:23:09 +0000 (06:23 +0000)]
fix for nla-strip-path function not returning an allocated pointer and new mask function ignoring the name argument from RNA-api.

6 years agoremove unused modifier argument from ParticleSystem.co_hair
Campbell Barton [Fri, 20 Sep 2013 06:20:07 +0000 (06:20 +0000)]
remove unused modifier argument from ParticleSystem.co_hair

6 years agofix [#36777] uv_on_emmiter make Blender crash
Campbell Barton [Fri, 20 Sep 2013 05:30:37 +0000 (05:30 +0000)]
fix [#36777] uv_on_emmiter make Blender crash

6 years agoreplace VIEW3D_OP_OFS_LOCK_TEST() macro with static function view3d_operator_offset_l...
Campbell Barton [Fri, 20 Sep 2013 01:43:06 +0000 (01:43 +0000)]
replace VIEW3D_OP_OFS_LOCK_TEST() macro with static function view3d_operator_offset_lock_check()

6 years agofix [#36773] Dolly breaks in quad view
Campbell Barton [Fri, 20 Sep 2013 01:24:00 +0000 (01:24 +0000)]
fix [#36773] Dolly breaks in quad view

more of a usability issue then a bug, now dolly switches out of camera view, like view-rotate does.

6 years agoRelease cycle / 2.69:
Thomas Dinges [Fri, 20 Sep 2013 00:48:03 +0000 (00:48 +0000)]
Release cycle / 2.69:
* Update links to release logs, now pointing at http://www.blender.org/development/release-logs/blender-269
* Update readme, also remove FreeBSD from it, we don't have official releases for that anymore.

6 years ago* Style cleanup / Cycles.
Thomas Dinges [Thu, 19 Sep 2013 23:54:16 +0000 (23:54 +0000)]
* Style cleanup / Cycles.

6 years agocorrect include guards and add checks in check_style_c.py for them.
Campbell Barton [Thu, 19 Sep 2013 23:17:52 +0000 (23:17 +0000)]
correct include guards and add checks in check_style_c.py for them.

6 years agoEnsure positions can be read for sources that have stride
Nathan Letwory [Thu, 19 Sep 2013 21:59:22 +0000 (21:59 +0000)]
Ensure positions can be read for sources that have stride
defined as 2 (2D coordinates).

6 years agoFix own stupid error in previous commit... :/
Bastien Montagne [Thu, 19 Sep 2013 20:27:26 +0000 (20:27 +0000)]
Fix own stupid error in previous commit... :/

6 years agoPrevent assert failure in knife.
Howard Trickey [Thu, 19 Sep 2013 13:35:43 +0000 (13:35 +0000)]
Prevent assert failure in knife.
It seems sometimes a knife edge with the same
vertex on both ends was created sometimes.

6 years agoFix potential crash in knife.
Howard Trickey [Thu, 19 Sep 2013 12:47:35 +0000 (12:47 +0000)]
Fix potential crash in knife.
A crash was reported but without info to reproduce.
This is a likely crash introduced by previous fix
to allow linehits to snap to vertices.
The function to find connected linehits can't
assume all linehits have edges any more.

6 years agoPotential fix for install_deps.sh OSL build issues reported by users: run ldconfig...
Bastien Montagne [Thu, 19 Sep 2013 11:25:47 +0000 (11:25 +0000)]
Potential fix for install_deps.sh OSL build issues reported by users: run ldconfig immediately after lib compile (looks like OSL compile process needs boost libs...).

6 years agoFix #36755, EXR Layers are not fully updated on scene load or image refresh.
Lukas Toenne [Thu, 19 Sep 2013 08:21:55 +0000 (08:21 +0000)]
Fix #36755, EXR Layers are not fully updated on scene load or image refresh.
After discussion with Brecht decided that automatically updating the sockets of the node based on externally modified data (removed EXR file passes) is not desirable behavior. But at least making sure
the correct passes are assigned to the output sockets of the Image node is possible. Now the passes are matched by name instead of using the faulty index stored in the socket data, which is more
reliable. Still may break if changing pass names externally, but an image reload is highly recommended anyway and will fix that.

6 years agoFix for OutputFile node, this would crash with unconnected sockets in MultiEXR mode...
Lukas Toenne [Thu, 19 Sep 2013 08:21:53 +0000 (08:21 +0000)]
Fix for OutputFile node, this would crash with unconnected sockets in MultiEXR mode, because it matches sockets and EXR layers by index and was skipping unconnected sockets. Simply create EXR layer info
for all sockets now and then ignore unconnected layers when finally writing to file in deinitExecution.

6 years agospeedup for ngon tessellation, check if the angle is an improvement before doing...
Campbell Barton [Thu, 19 Sep 2013 07:58:47 +0000 (07:58 +0000)]
speedup for ngon tessellation, check if the angle is an improvement before doing the full intersection check.
with 500 verts gives approx 2x speedup.

6 years agominor edits to poly_find_ear() bmesh function, no functional changes.
Campbell Barton [Thu, 19 Sep 2013 07:40:41 +0000 (07:40 +0000)]
minor edits to poly_find_ear() bmesh function, no functional changes.

6 years agofix [#36625] Particle Instances ignores Group offsets
Campbell Barton [Thu, 19 Sep 2013 01:21:34 +0000 (01:21 +0000)]
fix [#36625] Particle Instances ignores Group offsets
in fact this failed for all nested dupli types except for dupli-groups, (which ignore the 'par_space_mat' object_duplilist_recursive()).

6 years agoreplace macro PYC_INTERPRETER_ACTIVE for PyC_IsInterpreterActive() function call,
Campbell Barton [Wed, 18 Sep 2013 23:21:24 +0000 (23:21 +0000)]
replace macro PYC_INTERPRETER_ACTIVE for PyC_IsInterpreterActive() function call,
(indirectly referenced Python define of ~30 lines, most were optimized out but still caused some code bloat).

6 years agostyle cleanup
Campbell Barton [Wed, 18 Sep 2013 23:08:23 +0000 (23:08 +0000)]
style cleanup

6 years agofix [#36771] Prevent 'Apply Transform' for Objects with a linked mesh
Campbell Barton [Wed, 18 Sep 2013 22:45:14 +0000 (22:45 +0000)]
fix [#36771] Prevent 'Apply Transform' for Objects with a linked mesh