5 years agoRevert "BGE : KX_VertexProxy support for more than 2 UV channel."
Mitchell Stokes [Sat, 6 Jun 2015 20:11:22 +0000 (13:11 -0700)]
Revert "BGE : KX_VertexProxy support for more than 2 UV channel."

This reverts commit fb0dd596e9a58f095730359a11759c40ea46be44.

This commit reintroduced a deprecated API that we'd rather not see in a
release. A better solution is being worked on.

5 years agoView3D: avoid jumping placing cursor /w lock on
Campbell Barton [Sat, 6 Jun 2015 16:45:26 +0000 (02:45 +1000)]
View3D: avoid jumping placing cursor /w lock on

The view would jump each time, now compensate by adjusting the cursor panning.
Less jarring and helps avoid problems when the cursor gets outside the view, see: T40353

5 years agoUse threshold for selecting side-of-axis
Campbell Barton [Sat, 6 Jun 2015 16:09:41 +0000 (02:09 +1000)]
Use threshold for selecting side-of-axis

5 years agoCleanup: Typos
Julian Eisel [Sat, 6 Jun 2015 13:32:59 +0000 (15:32 +0200)]
Cleanup: Typos

5 years agoCleanup
Campbell Barton [Sat, 6 Jun 2015 11:02:16 +0000 (21:02 +1000)]

5 years agoFix wrong usage of THB_NORMAL size when generating .blend file thumbnail at save...
Bastien Montagne [Fri, 5 Jun 2015 17:42:00 +0000 (19:42 +0200)]
Fix wrong usage of THB_NORMAL size when generating .blend file thumbnail at save time.

We do not use that size of preview anymore, only THB_LARGE...

5 years agoFix T44961, bevel spikes out when certain angles near 180.
Howard Trickey [Fri, 5 Jun 2015 16:56:49 +0000 (12:56 -0400)]
Fix T44961, bevel spikes out when certain angles near 180.

Made the test for whether one can "see" an adjacent edge less
knife-close to 180. This means it will chose to slide along
such an edge less often, and avoid some spikes.

5 years agoCleanup:
Antony Riakiotakis [Fri, 5 Jun 2015 14:13:15 +0000 (16:13 +0200)]

Get rid of static functions that pass the exact same arguments in the
same order to other function.

5 years agoCycles: Initial support for OpenCL capabilities reports
Sergey Sharybin [Fri, 5 Jun 2015 12:13:59 +0000 (14:13 +0200)]
Cycles: Initial support for OpenCL capabilities reports

For now it's just generic information, still need to expose memory, workgorup
sizes and so on.

5 years agoFix T44960: Crash with 'Shape Cut' in edit hair mode.
Bastien Montagne [Fri, 5 Jun 2015 10:56:56 +0000 (12:56 +0200)]
Fix T44960: Crash with 'Shape Cut' in edit hair mode.

This is only supported for mesh objects so far.
Also, abort in case there are no faces in dm (instead of crashing on NULL BVH tree...).

5 years agoDepsgraph: Report to the console when the new depsgraph is used
Sergey Sharybin [Fri, 5 Jun 2015 00:34:33 +0000 (05:34 +0500)]
Depsgraph: Report to the console when the new depsgraph is used

5 years agoDepsgraph: Fix typo in header guard comment
Sergey Sharybin [Thu, 4 Jun 2015 22:37:14 +0000 (03:37 +0500)]
Depsgraph: Fix typo in header guard comment

5 years agoImBuf: Fix compilation error with latest OIIO
Sergey Sharybin [Wed, 3 Jun 2015 16:34:42 +0000 (21:34 +0500)]
ImBuf: Fix compilation error with latest OIIO

Latest OIIO libraries are using Boost libraries from the public headers.

5 years agoBMesh: decimator, allow vgroup factor over 1
Campbell Barton [Fri, 5 Jun 2015 05:26:37 +0000 (15:26 +1000)]
BMesh: decimator, allow vgroup factor over 1

Can be useful to apply more extreme weighting

5 years agoCheck ftell return values
Campbell Barton [Fri, 5 Jun 2015 01:46:01 +0000 (11:46 +1000)]
Check ftell return values

5 years agoBGE: correct ftell use in LoadGlobalDict
Jorge Bernal [Fri, 5 Jun 2015 01:14:09 +0000 (11:14 +1000)]
BGE: correct ftell use in LoadGlobalDict

5 years agoBGE Cleanup: remove dead code for collide, visible and twoside variables
Jorge Bernal [Fri, 5 Jun 2015 00:24:23 +0000 (02:24 +0200)]
BGE Cleanup: remove dead code for collide, visible and twoside variables

As material is not NULL at this stage there is no need to do a NULL
check. Also to remove dead code

Reviewers: dfelinto, panzergame, hg1, moguri

Reviewed By: panzergame, hg1, moguri

Projects: #game_engine

Differential Revision:

5 years agoNew "use placeholders" feature of the sequencer did not detect correct
Antony Riakiotakis [Thu, 4 Jun 2015 18:40:11 +0000 (20:40 +0200)]
New "use placeholders" feature of the sequencer did not detect correct

Added BLI_path utility functions to decompose a path name and
extract the frame number. It should be useful in autocollapse
feature as well

5 years agoBMesh decimate, improve behavior with weights
Campbell Barton [Thu, 4 Jun 2015 09:49:59 +0000 (19:49 +1000)]
BMesh decimate, improve behavior with weights

Add slider to adjust the influence of weights relative to geometry distortion.
This allows subtle influences to be applied - without drastic changes in behavior.

5 years agoFix modifiers stack not recalculated when mapping requirements change
Antony Riakiotakis [Thu, 4 Jun 2015 15:39:43 +0000 (17:39 +0200)]
Fix modifiers stack not recalculated when mapping requirements change

Reported by pixaal on irc, basically reproducable by inserting bevel
modifier on cube and entering/exiting texture paint mode.

Now object stores last needsMapping variable as well as customdata mask.

Also now texture painting only needs mapping when we are in texture
paint selection mode, so modifiers that don't support mapping can still
be used to paint now.

5 years agoFix tooltip colors not initialized correctly
Julian Eisel [Thu, 4 Jun 2015 15:04:48 +0000 (17:04 +0200)]
Fix tooltip colors not initialized correctly

Already committed similar fix (rBbeaed66f292dd) but saw it appearing on
other peoples screens a few times since them. Never was able to recreate
This should make sure everything is initialized fine, so if we see it
appearing again, then it's likely because of manual tweaks or the
version saved in the .blend.

5 years agocorrect last commit
Campbell Barton [Thu, 4 Jun 2015 13:47:03 +0000 (23:47 +1000)]
correct last commit

5 years agoBMesh: decimator minor edits
Campbell Barton [Thu, 4 Jun 2015 08:00:49 +0000 (18:00 +1000)]
BMesh: decimator minor edits

5 years agoFix buffer overrun searching program path on win32
Campbell Barton [Thu, 4 Jun 2015 06:48:56 +0000 (16:48 +1000)]
Fix buffer overrun searching program path on win32

5 years agoLoading raw targa now sets the filetype
Campbell Barton [Thu, 4 Jun 2015 06:36:11 +0000 (16:36 +1000)]
Loading raw targa now sets the filetype

5 years agoCleanup: redundant checks
Campbell Barton [Thu, 4 Jun 2015 05:51:49 +0000 (15:51 +1000)]
Cleanup: redundant checks

5 years agoFix for leak creating stereo images
Campbell Barton [Thu, 4 Jun 2015 05:40:17 +0000 (15:40 +1000)]
Fix for leak creating stereo images

5 years agoCleanup: clarify order of precedence: &/?
Campbell Barton [Thu, 4 Jun 2015 05:28:26 +0000 (15:28 +1000)]
Cleanup: clarify order of precedence: &/?

5 years agoFix T41177. Bevel shouldn't try to slide along edge when can't see it.
Howard Trickey [Wed, 3 Jun 2015 19:18:41 +0000 (15:18 -0400)]
Fix T41177. Bevel shouldn't try to slide along edge when can't see it.

5 years agoI18n extract: better handling of commandline args.
Bastien Montagne [Wed, 3 Jun 2015 15:15:00 +0000 (17:15 +0200)]
I18n extract: better handling of commandline args.

5 years agoMake reading previews from .blend file more robust.
Bastien Montagne [Wed, 3 Jun 2015 14:42:08 +0000 (16:42 +0200)]
Make reading previews from .blend file more robust.

Hit a case here where rect pointer was not NULL, when h & w were both zero...
Shall not happen, but better not crash on such cases!

5 years agoDo not show brush cursor for fill brush (size not supported)
Antony Riakiotakis [Wed, 3 Jun 2015 10:04:47 +0000 (12:04 +0200)]
Do not show brush cursor for fill brush (size not supported)

5 years agoFix inconsistencies in texture paint UI T44929, T44927:
Antony Riakiotakis [Wed, 3 Jun 2015 09:33:33 +0000 (11:33 +0200)]
Fix inconsistencies in texture paint UI T44929, T44927:

* lock alpha only works in projective painting
* fill threshold only works in 2D painting

5 years agoFix error calculating bmesh normals
Campbell Barton [Wed, 3 Jun 2015 08:10:43 +0000 (18:10 +1000)]
Fix error calculating bmesh normals

edge vector stack was left un-cleared.

5 years agoBLI_stack: gtest for clear
Campbell Barton [Wed, 3 Jun 2015 08:09:12 +0000 (18:09 +1000)]
BLI_stack: gtest for clear

5 years agoBLI_stack, add clear function.
Campbell Barton [Wed, 3 Jun 2015 08:06:47 +0000 (18:06 +1000)]
BLI_stack, add clear function.

5 years agoCorrect own fix reference before assignment
Campbell Barton [Wed, 3 Jun 2015 07:08:28 +0000 (17:08 +1000)]
Correct own fix reference before assignment

3rd fix for silly exception conversion!

5 years agoFix memory leak loading multi-layer OpenEXR
Campbell Barton [Wed, 3 Jun 2015 06:23:32 +0000 (16:23 +1000)]
Fix memory leak loading multi-layer OpenEXR

5 years agoFix memory leak loading single-layer OpenEXR
Campbell Barton [Wed, 3 Jun 2015 06:07:27 +0000 (16:07 +1000)]
Fix memory leak loading single-layer OpenEXR

Internal EXR API specifically avoids freeing non-file streams.

5 years agoFix for RMB Menu title including shortcut
Campbell Barton [Wed, 3 Jun 2015 04:57:14 +0000 (14:57 +1000)]
Fix for RMB Menu title including shortcut

5 years agoFix UI string clip (reverse search separator char)
Campbell Barton [Wed, 3 Jun 2015 05:01:02 +0000 (15:01 +1000)]
Fix UI string clip (reverse search separator char)

The string may have many '|' characters, only the last is clipped.

5 years agoCleanup: check button flag for shortcut delimiter
Campbell Barton [Wed, 3 Jun 2015 04:34:04 +0000 (14:34 +1000)]
Cleanup: check button flag for shortcut delimiter

5 years agoFix multires update (reading `char *` as an `int *`)
Campbell Barton [Wed, 3 Jun 2015 03:40:39 +0000 (13:40 +1000)]
Fix multires update (reading `char *` as an `int *`)

5 years agoFix object align crash (use-after-free)
Campbell Barton [Wed, 3 Jun 2015 03:40:00 +0000 (13:40 +1000)]
Fix object align crash (use-after-free)

5 years agoCleanup: metaballs called memcpy with NULL source
Campbell Barton [Wed, 3 Jun 2015 02:35:37 +0000 (12:35 +1000)]
Cleanup: metaballs called memcpy with NULL source

Simplify logic and use realloc

5 years agoCorrect vert/edge slide poll functions
Campbell Barton [Wed, 3 Jun 2015 03:41:30 +0000 (13:41 +1000)]
Correct vert/edge slide poll functions

Would crash trying to access outside the 3D view.

5 years agoCorrect own recent error printing Python exception
Campbell Barton [Wed, 3 Jun 2015 02:36:32 +0000 (12:36 +1000)]
Correct own recent error printing Python exception

5 years agoFix race condition
Campbell Barton [Wed, 3 Jun 2015 01:00:48 +0000 (11:00 +1000)]
Fix race condition

Exposed when checking on T44871

5 years agoImBuf: Fix memory leak around EXR handle's multiView
Sergey Sharybin [Tue, 2 Jun 2015 17:42:51 +0000 (22:42 +0500)]
ImBuf: Fix memory leak around EXR handle's multiView

5 years agoFix T44742. Bevel now avoids vertex meshes when only two edges are beveled.
Howard Trickey [Tue, 2 Jun 2015 13:25:05 +0000 (09:25 -0400)]
Fix T44742. Bevel now avoids vertex meshes when only two edges are beveled.

Also, changed the algorithm for generating the vertex meshes when not all
edges into a vertex are beveled. Now it tries to slide along edges that
form part of the silhouette when possible; when not possible, it tries
to snap to the best plane in between the beveled edges.

5 years agoFix T36994: Make link modifier fails (soft body)
Campbell Barton [Tue, 2 Jun 2015 10:23:01 +0000 (20:23 +1000)]
Fix T36994: Make link modifier fails (soft body)

5 years agoCleanup: use const for object copy funcs
Campbell Barton [Tue, 2 Jun 2015 10:21:45 +0000 (20:21 +1000)]
Cleanup: use const for object copy funcs

5 years agoFix operator exec /w popups that close the window
Campbell Barton [Tue, 2 Jun 2015 08:57:52 +0000 (18:57 +1000)]
Fix operator exec /w popups that close the window

Related to T44688, note supporting this case isn't so nice,
but seems it can be made to work.

5 years agoFix compilation error after recent commit
Sergey Sharybin [Tue, 2 Jun 2015 08:11:03 +0000 (13:11 +0500)]
Fix compilation error after recent commit

5 years agoFix T44921: Node editor, nodes position not maintained after Material panel changes
Sergey Sharybin [Tue, 2 Jun 2015 07:32:43 +0000 (12:32 +0500)]
Fix T44921: Node editor, nodes position not maintained after Material panel changes

Also improved a bit behavior of adding new nodes, now they will not overlap that
badly. Still not ideal, but further improvements better not to happen at bcon4.

5 years agoFix T44922: Split kernel renders black when using Bump node
Sergey Sharybin [Tue, 2 Jun 2015 06:53:10 +0000 (11:53 +0500)]
Fix T44922: Split kernel renders black when using Bump node

Was missing feature detection in the BumpNode in the previous selective nodes
compilation commit.

5 years agoFix own mistake searching python binary
Campbell Barton [Tue, 2 Jun 2015 05:42:03 +0000 (15:42 +1000)]
Fix own mistake searching python binary

5 years agoSimplify Win32 extension check
Campbell Barton [Tue, 2 Jun 2015 05:38:14 +0000 (15:38 +1000)]
Simplify Win32 extension check

5 years agoFix drawing text on >2gig buffers (stamp for eg)
Campbell Barton [Tue, 2 Jun 2015 04:59:31 +0000 (14:59 +1000)]
Fix drawing text on >2gig buffers (stamp for eg)

5 years agoFix T44869: Crash rendering >2gb images
Campbell Barton [Tue, 2 Jun 2015 02:58:53 +0000 (12:58 +1000)]
Fix T44869: Crash rendering >2gb images

5 years agoFix T44919: BGE marhutils attrs leak memory
Campbell Barton [Tue, 2 Jun 2015 01:04:56 +0000 (11:04 +1000)]
Fix T44919: BGE marhutils attrs leak memory

5 years agoUI: tweaks to ID and non ID preview templates
Ines Almeida [Sun, 31 May 2015 17:15:10 +0000 (19:15 +0200)]
UI: tweaks to ID and non ID preview templates

- label is shown on a UI_UNIT_Y heigh instead of 0.2 * total button size
- vertically centering non-ID previews labels
- making some constants dependent on ui units

5 years agotemplate id previews: changes for consistency with icon views template
Ines Almeida [Mon, 25 May 2015 20:55:48 +0000 (21:55 +0100)]
template id previews: changes for consistency with icon views template

- elongate the buttons to acomodate the icon without the label overlapping.
- removing the blue background
- adding a consistent margin all around the popup

5 years agotemplate ID previews: quick fix for buttons region overlapping the search button
Ines Almeida [Sun, 31 May 2015 13:42:44 +0000 (15:42 +0200)]
template ID previews: quick fix for buttons region overlapping the search button

5 years agoFix T44908: Blender crashes when trying to use cycles experimental displacement
Sergey Sharybin [Mon, 1 Jun 2015 18:59:23 +0000 (23:59 +0500)]
Fix T44908: Blender crashes when trying to use cycles experimental displacement

The issue was caused by the reshuffle needed to make objects flags have proper
object's bounding box to solve regressions in SSS objects intersecting volumes.

There's actually a feedback loop happening here, which is now solved in quite
naive way -- for the true displacement we consider all objects are capable of
intersecting volumes, synchronize object flags prior to displacement shader
tasks runs and then re-update object flags for proper bounding box.

Not sure what will be the proper solution here, we can't do preliminary check
of intersection for displacement shader, but on the other hand we don't really
need this flag for displacement shader anyway.

5 years agoThumbnails: fix bad handling of invalid thumbnails, cleanup and deduplication.
Bastien Montagne [Mon, 1 Jun 2015 17:41:51 +0000 (19:41 +0200)]
Thumbnails: fix bad handling of invalid thumbnails, cleanup and deduplication.

Invalid thumbnails (missing mtime metadata) are to be re-generated, not ignored!

5 years agoFont Preview: much better handling of i18n case.
Bastien Montagne [Mon, 1 Jun 2015 17:21:27 +0000 (19:21 +0200)]
Font Preview: much better handling of i18n case.

We have to regenerate previews when we change language. But we also need to do it
when translation is changed or added for a language, etc.

Previously, we were storing one preview per language, which was also stuffing
preview dir with (potentially) tens of PNGs per font file, if user plays with translations.

Now we use a better system, which is storing an additional optional metadata in previews
(some hexdigest), that Blender can use in addition to datetime to decide when to regenerate

This is only used (and needed) by font previews so far, but can easily be reused for other
types of previews if needed.

5 years agoFont Preview: fallback to default english strings in case translated ones have not...
Bastien Montagne [Mon, 1 Jun 2015 15:12:56 +0000 (17:12 +0200)]
Font Preview: fallback to default english strings in case translated ones have not enough chars in current font.

This avoids some ugly 'missing char' in previews - not all cases of course, but most common ones.

A complete solution would be much much more involved, and probably not worth it here.
Definitively not before a release, at least!

5 years agoFix T44915 vertex color lost when adding new layer in edit mode.
Antony Riakiotakis [Mon, 1 Jun 2015 17:06:46 +0000 (19:06 +0200)]
Fix T44915 vertex color lost when adding new layer in edit mode.

Was copying new layer colors to old layer colors.

5 years agoDisable writing a crash file completely on Windows.
Antony Riakiotakis [Mon, 1 Jun 2015 16:54:03 +0000 (18:54 +0200)]
Disable writing a crash file completely on Windows.

We had some reports where users did not even read the "Not supported on
release builds" message, and arguably writing a file sort of indicates
that the file may include something useful.

5 years agoCycles XML API: * Add Bump and Holdout Node * Add todo comments for various things...
Thomas Dinges [Thu, 21 May 2015 19:56:42 +0000 (21:56 +0200)]
Cycles XML API: * Add Bump and Holdout Node * Add todo comments for various things. * SSS falloff now works.

5 years agoCycles: Number keys 0-3 can be used in interactive mode now to set max bounces.
Thomas Dinges [Tue, 19 May 2015 10:47:38 +0000 (12:47 +0200)]
Cycles: Number keys 0-3 can be used in interactive mode now to set max bounces.

5 years agoCycles: Fix wrong max nodes group used for the viewport render
Sergey Sharybin [Mon, 1 Jun 2015 14:36:44 +0000 (19:36 +0500)]
Cycles: Fix wrong max nodes group used for the viewport render

5 years agoCycles: Strip meaningless empty output form the MVidia OpenCL compiler
Sergey Sharybin [Mon, 1 Jun 2015 14:36:13 +0000 (19:36 +0500)]
Cycles: Strip meaningless empty output form the MVidia OpenCL compiler

5 years agoCycles: Assert in the cases when SVM node was not handled
Sergey Sharybin [Mon, 1 Jun 2015 13:21:29 +0000 (18:21 +0500)]
Cycles: Assert in the cases when SVM node was not handled

This will help figuring out cases when node was not properly handled by the SVM
by aborting execution on CPU, where all the nodes are expected to be supported.

5 years agoCycles: Implement selective nodes compilation
Sergey Sharybin [Mon, 1 Jun 2015 12:48:45 +0000 (17:48 +0500)]
Cycles: Implement selective nodes compilation

This commits finishes initial selective nodes compilation into kernel, which
helps a lot performance-wise for AMD OpenCL kernels.

Split by node groups is based on statistics from simple scenes like BMW and
more complex scenes like mango and gooseberry production files. Further
tweaks are always possible, but it should be a good starting point.

TODO: Still need to ignore unused nodes when calculating requested shader

5 years agoCycles: Fix some typos in the selective modes compilation
Sergey Sharybin [Mon, 1 Jun 2015 13:55:29 +0000 (18:55 +0500)]
Cycles: Fix some typos in the selective modes compilation

5 years agoCycles: Code cleanup, spaces around keyword and brace
Sergey Sharybin [Mon, 1 Jun 2015 13:11:57 +0000 (18:11 +0500)]
Cycles: Code cleanup, spaces around keyword and brace

5 years agoCycles: Fix missing features gathering from the bump graph
Sergey Sharybin [Mon, 1 Jun 2015 10:52:00 +0000 (15:52 +0500)]
Cycles: Fix missing features gathering from the bump graph

5 years agoCycles: Add bump feature for selective nodes compilation
Sergey Sharybin [Mon, 1 Jun 2015 10:26:36 +0000 (15:26 +0500)]
Cycles: Add bump feature for selective nodes compilation

For now it is unused in the kernel, actual usage will come with
the next commits.

5 years agoCycles: Report build flags used for the OpenCL kernel compilation
Sergey Sharybin [Mon, 1 Jun 2015 10:00:10 +0000 (15:00 +0500)]
Cycles: Report build flags used for the OpenCL kernel compilation

For now it's reported to the stdout, matching to the CUDA behavior.
In the future we can hide this into GLog logging once the kernels
are considered all stable and so.

5 years agoCycles: Shader node features are to be inherited from the base class
Sergey Sharybin [Mon, 1 Jun 2015 09:48:24 +0000 (14:48 +0500)]
Cycles: Shader node features are to be inherited from the base class

5 years agoFix T44894: Round two.
Bastien Montagne [Mon, 1 Jun 2015 11:09:45 +0000 (13:09 +0200)]
Fix T44894: Round two.

We cannot `direct_link_packedfile()` twice on a same address, because this tries to
map again pf->data address, which leads to nothing (NULL).

So now, since `ima->packedfile` and `ima->packedfiles` are mutually exclusive
in 'live' blender data anyway, we either read one or the other.

Tested from/to official 2.74 and current master, everything looks fine now.

5 years agoFix T40621: Tablet in walk mode fails
Campbell Barton [Mon, 1 Jun 2015 09:57:38 +0000 (19:57 +1000)]
Fix T40621: Tablet in walk mode fails

Add support for walk mode /w absolute pointing devices.

5 years agoWM: include tablet data in WM_event_print
Campbell Barton [Mon, 1 Jun 2015 07:39:47 +0000 (17:39 +1000)]
WM: include tablet data in WM_event_print

5 years agoFix T44747: Drag toggle /w nodes (glitch)
Campbell Barton [Mon, 1 Jun 2015 06:40:43 +0000 (16:40 +1000)]
Fix T44747: Drag toggle /w nodes (glitch)

It was possible to perform actions while performing a drag-toggle.

5 years agoCleanup: doxygen comments
Campbell Barton [Mon, 1 Jun 2015 04:56:07 +0000 (14:56 +1000)]
Cleanup: doxygen comments

5 years agoFix for leak in BM_uv_element_map_create
Campbell Barton [Mon, 1 Jun 2015 03:23:02 +0000 (13:23 +1000)]
Fix for leak in BM_uv_element_map_create

Also correct over alloc and redundant alloc.

5 years agoFix T44892: Cursor warp, invoked outside the area
Campbell Barton [Mon, 1 Jun 2015 01:59:02 +0000 (11:59 +1000)]
Fix T44892: Cursor warp, invoked outside the area

If an operator starts outside an area, don't use warping.
(problematic for menu's).

5 years agoFix vertex slide regression /w rotated objects
Campbell Barton [Mon, 1 Jun 2015 01:25:55 +0000 (11:25 +1000)]
Fix vertex slide regression /w rotated objects

5 years agoFix T44894: Broken packed image import from older .blend file.
Bastien Montagne [Sun, 31 May 2015 16:28:28 +0000 (18:28 +0200)]
Fix T44894: Broken packed image import from older .blend file.

rBe5fbeba0b3a6e9eea not only restored forward compat, it also broke backward compat...
for no reason at all even, exising ima->packedfile is only used by read/versionning
code if .blend version is below 274.4 (i.e. no multi-image packing exists).

5 years agoImprovements to the Freestyle Python API (needed by the SVG Exporter)
Tamito Kajiyama [Sun, 31 May 2015 08:46:58 +0000 (17:46 +0900)]
Improvements to the Freestyle Python API (needed by the SVG Exporter)

This patch adds some new functionality to the Freestyle Python API, notably:

  - MaterialBP1D, checks whether the supplied arguments have the same material
  - Fixes a potential crash in CurvePoint.fedge (due to NULL pointer)
  - Makes (error handling in) boolean predicates more robust
  - Adds a BoundingBox type, to make working with bounding boxes easier
  - Adds several new functions (get_object_name, get_strokes, is_poly_clockwise, material_from_fedge)
  - Adds a StrokeCollector StrokeShader, that collects all the strokes from a specific call to Operators.create()
  - Adds hashing and rich comparison to the FrsMaterial type

These new features (most of them, anyway) are needed for making a more robust SVG exporter that supports holes in fills.

Reviewers: kjym3, campbellbarton

Subscribers: campbellbarton

Projects: #bf_blender

Differential Revision:

5 years agoFix ugly drawing of closed panels in horizontal layout
Julian Eisel [Sun, 31 May 2015 12:30:25 +0000 (14:30 +0200)]
Fix ugly drawing of closed panels in horizontal layout

Also minor cleanup

5 years agoPython: avoid mutable default param values
Campbell Barton [Sun, 31 May 2015 05:56:22 +0000 (15:56 +1000)]
Python: avoid mutable default param values

D1328 by @yedpodtrzitko

5 years agoUI: comments (doxygen tweaks)
Campbell Barton [Sun, 31 May 2015 04:20:03 +0000 (14:20 +1000)]
UI: comments (doxygen tweaks)

5 years agoBGE Cleanup: Removing flen variable where it is not used
Jorge Bernal [Sat, 30 May 2015 16:30:34 +0000 (18:30 +0200)]
BGE Cleanup: Removing flen variable where it is not used

5 years agoBGE Cleanup: Identical code for both if/else branches
Jorge Bernal [Sat, 30 May 2015 16:14:32 +0000 (18:14 +0200)]
BGE Cleanup: Identical code for both if/else branches

5 years agofix T44884: corrected a wrong usage of the CustomLayer API (due to a misunderstanding)
Gaia Clary [Sat, 30 May 2015 12:18:35 +0000 (14:18 +0200)]
fix T44884: corrected a wrong usage of the CustomLayer API (due to a misunderstanding)

5 years agoCorrect own error with recent commit
Campbell Barton [Sat, 30 May 2015 10:26:26 +0000 (20:26 +1000)]
Correct own error with recent commit

Caused entering an invalid number to leak.

5 years agopython tar.gz changed structure due to python.exe being added. remove /lib/ from...
Martijn Berger [Sat, 30 May 2015 07:44:44 +0000 (09:44 +0200)]
python tar.gz changed structure due to python.exe being added. remove /lib/ from cmake as lib and bin are both in the tar.gz