blender.git
5 years agoFix T37929: inherit scale for dupli faces was not shown greyed out when it should be.
Brecht Van Lommel [Mon, 23 Dec 2013 15:27:43 +0000 (16:27 +0100)]
Fix T37929: inherit scale for dupli faces was not shown greyed out when it should be.

5 years agoFix compile error on 32 bits linux / windows, wireframe modifier needs padding.
Brecht Van Lommel [Mon, 23 Dec 2013 14:47:24 +0000 (15:47 +0100)]
Fix compile error on 32 bits linux / windows, wireframe modifier needs padding.

Thanks to Scott Petrovic and Jia Wang for submitting fixes.

Differential Revision: http://developer.blender.org/D126
Differential Revision: http://developer.blender.org/D130

5 years agoSyntax correction for gpu docs, D124
Campbell Barton [Mon, 23 Dec 2013 06:24:23 +0000 (17:24 +1100)]
Syntax correction for gpu docs, D124

5 years agoBMesh API: optimize BM_edge_exists().
Campbell Barton [Mon, 23 Dec 2013 05:52:43 +0000 (16:52 +1100)]
BMesh API: optimize BM_edge_exists().

5 years agoBMesh API: make simple, low level functions inline
Campbell Barton [Mon, 23 Dec 2013 05:03:07 +0000 (16:03 +1100)]
BMesh API: make simple, low level functions inline

5 years agoFix for crash when no args where given with -o, -x command line args
Campbell Barton [Mon, 23 Dec 2013 02:08:32 +0000 (13:08 +1100)]
Fix for crash when no args where given with -o, -x command line args

Patch D123 from djnz (Masakazu Ito)

5 years agoUI: Resolve T37917, disable tooltip scaling (zoomout only)
Campbell Barton [Mon, 23 Dec 2013 01:46:50 +0000 (12:46 +1100)]
UI: Resolve T37917, disable tooltip scaling (zoomout only)

5 years agoFix for tooltip right side having zero offset
Campbell Barton [Mon, 23 Dec 2013 01:42:46 +0000 (12:42 +1100)]
Fix for tooltip right side having zero offset

5 years agoFix for converting unfilled 3d text into a mesh
Campbell Barton [Mon, 23 Dec 2013 01:12:40 +0000 (12:12 +1100)]
Fix for converting unfilled 3d text into a mesh

5 years agoDupliverts: avoid calculating normals if not used
Campbell Barton [Sun, 22 Dec 2013 23:53:46 +0000 (10:53 +1100)]
Dupliverts: avoid calculating normals if not used

5 years agoMore CMakeLists.txt changes
Martijn Berger [Sun, 22 Dec 2013 22:24:47 +0000 (23:24 +0100)]
More CMakeLists.txt changes

Summary:
I added a function that adds all libdir/* to  CMAKE_PREFIX_PATH :

further there where two places where if(MSVC) else (mingq) where defined after each other. I moved those into one place.
The things common to MSVC and mingw are now blow the special code as we set libdir and such things depending on compiler.

Besides find_package() working and some cleanups there should be no functional changes

Reviewers: dingto

Reviewed By: dingto

Differential Revision: http://developer.blender.org/D127

5 years agoCode cleanup / Cycles: Remove CUDA check (we don't support sm_1x anymore) and unused...
Thomas Dinges [Sun, 22 Dec 2013 13:43:37 +0000 (14:43 +0100)]
Code cleanup / Cycles: Remove CUDA check (we don't support sm_1x anymore) and unused hair flag.

5 years agoCode cleanup / Cycles: Remove unused interpolation code for hair triangles, we only...
Thomas Dinges [Sun, 22 Dec 2013 13:13:49 +0000 (14:13 +0100)]
Code cleanup / Cycles: Remove unused interpolation code for hair triangles, we only support cardinal curves.

5 years agoFix T37898: blenderplayer painfully slow in recent builds
Sergey Sharybin [Sun, 22 Dec 2013 09:26:59 +0000 (15:26 +0600)]
Fix T37898: blenderplayer painfully slow in recent builds

Issue was caused by recent image cache rewrite and root of
the issue goes to the fact that blender player doesn't
initialize cache limiter and it uses 32meg of memory only.

This leads to infinite image loading/freeing.

For now disabled cache limiter in game engine, this brings
back old behavior.

In theory we might be smarter here, but better caching
policy is to be discussed.

5 years agoAdd ItemDestroyable to the cache limitor
Sergey Sharybin [Tue, 10 Dec 2013 08:40:09 +0000 (14:40 +0600)]
Add ItemDestroyable to the cache limitor

This callback is used when cache limiter needs to remove
some cached objects when running out of limit.

From blender side it's used to keep painted images always
in memory.

This fixes issue when painted images were removing from
the memory after image cache rewrite.

5 years agoCode Cleanup: de-duplicate constraint checks with armature join
Campbell Barton [Sun, 22 Dec 2013 05:05:09 +0000 (16:05 +1100)]
Code Cleanup: de-duplicate constraint checks with armature join

5 years agoStyle Cleanup: remove preprocessor indentation (updated wiki style guide too)
Campbell Barton [Sun, 22 Dec 2013 03:11:10 +0000 (14:11 +1100)]
Style Cleanup: remove preprocessor indentation (updated wiki style guide too)

5 years agoFix T37910: maya key configuration not working after recent changes.
Brecht Van Lommel [Sat, 21 Dec 2013 22:27:35 +0000 (23:27 +0100)]
Fix T37910: maya key configuration not working after recent changes.

5 years agoFix for extrude poll functions not checking active object
Campbell Barton [Sat, 21 Dec 2013 20:59:24 +0000 (07:59 +1100)]
Fix for extrude poll functions not checking active object

5 years agoerror in recent commit (this is getting ridiculous),
Campbell Barton [Sat, 21 Dec 2013 20:27:07 +0000 (07:27 +1100)]
error in recent commit (this is getting ridiculous),
faces were flipping the wrong way

5 years agoerror in last commit, missing normal update.
Campbell Barton [Sat, 21 Dec 2013 20:19:48 +0000 (07:19 +1100)]
error in last commit, missing normal update.

5 years agoerror in last commit, flag names.
Campbell Barton [Sat, 21 Dec 2013 20:16:41 +0000 (07:16 +1100)]
error in last commit, flag names.

5 years agoModifier: New Wireframe Modifier
Campbell Barton [Sat, 21 Dec 2013 20:08:35 +0000 (07:08 +1100)]
Modifier: New Wireframe Modifier

Based on patch originally by Thomas Beck,
uses options similar to solidify.

5 years agoEditMesh: wireframe tool, add offset and vgroup support (not used yet)
Campbell Barton [Sat, 21 Dec 2013 19:54:37 +0000 (06:54 +1100)]
EditMesh: wireframe tool, add offset and vgroup support (not used yet)

5 years agoFix for mesh deform modifier missing copy for flag.
Campbell Barton [Sat, 21 Dec 2013 17:45:00 +0000 (04:45 +1100)]
Fix for mesh deform modifier missing copy for flag.

5 years agoMesh Modifiers: refactor copying using a generic function
Campbell Barton [Sat, 21 Dec 2013 17:35:52 +0000 (04:35 +1100)]
Mesh Modifiers: refactor copying using a generic function

5 years agoSupport units in modal numinput
Bastien Montagne [Sat, 21 Dec 2013 16:11:43 +0000 (17:11 +0100)]
Support units in modal numinput

Summary:
This completly changes the way modal numinput is handled. Now, edited expression is a string, which then gets unit- and py-evaluated to get a float value.

We gain many power and flexibility, but lose a few "shortcuts" like '-' to negate, or '/' to inverse (if they are really needed, we still can add them with modifiers, like e.g. ctrl-/ or so).

Features:
- units (cm, ", deg, etc.).
- basic operations from python/BKE_unit (+, *, **, etc.), and math constants and functions (pi, sin, etc.).
- you can navigate in edited value (left/right key, ctrl to move by block) and insert/delete chars, e.g. to fix a typo without having to rewrite everything.
- you can go to next/previous value with (ctrl-)TAB key.
- As before, hitting backspace after having deleted all leading chars will first reset the edited value to init state, and on second press, the whole "modal numinput" editing will be cancelled, going back to usual transform with mouse.

Notes:
- Did not touch to how values are shown in header when modal numinput is not enabled (would do that in another commit), so this is still quite inconsistent.
- Added back radian support in BKE_unit.
- Added arcminute/arcsecond to BKE_unit.
(those unit changes affect all angle UI controls, btw, so you can now enter radians or longitude/latitude values when in degrees units).

Related to T37600.

Reviewers: brecht, campbellbarton, carter2422

Reviewed By: brecht, campbellbarton, carter2422
Thanks everybody!

Differential Revision: http://developer.blender.org/D61

5 years agoFix T37906: Adding force field settings to boids gives hard crash
Sergey Sharybin [Sat, 21 Dec 2013 14:35:47 +0000 (20:35 +0600)]
Fix T37906: Adding force field settings to boids gives hard crash

Was a regression since fix for another bug T37189.

5 years agoFix T37907: Crash when change screen layout to "Motion Tracking"
Sergey Sharybin [Sat, 21 Dec 2013 14:26:23 +0000 (20:26 +0600)]
Fix T37907: Crash when change screen layout to "Motion Tracking"

Was a bug in recent change from my own.

Also fixed cache line being displayed twice.

5 years agoCleanup: Code and style cleanup for Cycles curve export code.
Thomas Dinges [Fri, 20 Dec 2013 23:20:16 +0000 (00:20 +0100)]
Cleanup: Code and style cleanup for Cycles curve export code.

5 years agoFix T37903: Operator log serialization broken for sets.
Bastien Montagne [Fri, 20 Dec 2013 22:35:28 +0000 (23:35 +0100)]
Fix T37903: Operator log serialization broken for sets.

Was a mistake in rB9d6f05ed style edits (TRUE became false ;) ).

5 years agoFix bookmarks not appearing in file browser after "copy previous settings".
Brecht Van Lommel [Fri, 20 Dec 2013 16:39:22 +0000 (17:39 +0100)]
Fix bookmarks not appearing in file browser after "copy previous settings".

5 years agoFix wrong display of movie clip cache with mask overlay enabled
Sergey Sharybin [Fri, 20 Dec 2013 16:16:53 +0000 (22:16 +0600)]
Fix wrong display of movie clip cache with mask overlay enabled

5 years agoSlightly improve undo performance in dyntopo when last operator was mask
Antony Riakiotakis [Fri, 20 Dec 2013 11:41:38 +0000 (13:41 +0200)]
Slightly improve undo performance in dyntopo when last operator was mask
modification. In that case no pbvh needs to be freed and recreated and
we can get away just with draw buffer update (all of them for now. When
pbvh nodes get logged for undo we will be able to only update the
affected ones).

5 years agoMSVC 2013 cmake changes
Martijn Berger [Fri, 20 Dec 2013 13:32:51 +0000 (14:32 +0100)]
MSVC 2013 cmake changes

Summary:
I think we should try to use find_package more over just setting the variables it would set.
I added find_package with old behavior as a feedback for boost and openexr

@dingto can you test it in msvc2008 setup ?

Reviewers: dingto

Reviewed By: dingto

CC: dingto, brecht
Differential Revision: http://developer.blender.org/D104

5 years agoFix T37883: Dope Sheet - Selecting object channels in AnimEditors doesn't make them...
Joshua Leung [Fri, 20 Dec 2013 02:30:00 +0000 (15:30 +1300)]
Fix T37883: Dope Sheet - Selecting object channels in AnimEditors doesn't make them active

There was probably a reason in the past why this wasn't desirable, but since we allow
bones to be properly selected when clicking on corresponding channels here, we may as
well allow this case too.

5 years agoCode Cleanup: style
Campbell Barton [Fri, 20 Dec 2013 10:43:42 +0000 (21:43 +1100)]
Code Cleanup: style

5 years agoDon't use with_resol suffix for functions which doesn't get resolution
Sergey Sharybin [Fri, 20 Dec 2013 10:00:05 +0000 (16:00 +0600)]
Don't use with_resol suffix for functions which doesn't get resolution

5 years agoCode cleanup: remove unused functions from mask module
Sergey Sharybin [Fri, 20 Dec 2013 09:47:19 +0000 (15:47 +0600)]
Code cleanup: remove unused functions from mask module

This functions doesn't seem to be used even from a commented code.

5 years agoFix for border select doesn't work with normalization enabled
Sergey Sharybin [Fri, 20 Dec 2013 08:46:50 +0000 (14:46 +0600)]
Fix for border select doesn't work with normalization enabled

Some lazy developer named Sergey typed zero instead of actual
mapping flag in unit mapping function in the original f-curve
normalization commit.

5 years agoUI: restore confirmation popups for delete operators.
Brecht Van Lommel [Fri, 20 Dec 2013 00:38:07 +0000 (01:38 +0100)]
UI: restore confirmation popups for delete operators.

It turned out this was leading to accidental deleting in some cases when the
info message was missed by users. Fixes T37801.

5 years agoFix T37890: compositor did not take number of thread setting into account.
Brecht Van Lommel [Thu, 19 Dec 2013 23:43:26 +0000 (00:43 +0100)]
Fix T37890: compositor did not take number of thread setting into account.

5 years agoFix T37884: cycles hair rendering crash with UV coordinates.
Brecht Van Lommel [Thu, 19 Dec 2013 23:05:54 +0000 (00:05 +0100)]
Fix T37884: cycles hair rendering crash with UV coordinates.

This was broken in a recent bugfix for zero length hairs.

5 years agoRaise Python version to 3.3.3.
Bastien Montagne [Thu, 19 Dec 2013 21:44:51 +0000 (22:44 +0100)]
Raise Python version to 3.3.3.

5 years agoFix T37861: remove unnecessary error print when viewport rendering a curve that gives...
Brecht Van Lommel [Thu, 19 Dec 2013 18:19:31 +0000 (19:19 +0100)]
Fix T37861: remove unnecessary error print when viewport rendering a curve that gives an empty mesh.

5 years agoFix T37869: vertex paint + wireframe draw mode + smoke domain did not draw correct.
Brecht Van Lommel [Thu, 19 Dec 2013 17:52:26 +0000 (18:52 +0100)]
Fix T37869: vertex paint + wireframe draw mode + smoke domain did not draw correct.

5 years agoFix T37003, Fix T37859: smoke modifier taking deforming modifiers into account
Brecht Van Lommel [Thu, 19 Dec 2013 17:25:14 +0000 (18:25 +0100)]
Fix T37003, Fix T37859: smoke modifier taking deforming modifiers into account
in some cases.

The smoke modifier now ignores the modifier evaluation for generated texture
coordinates, which would previously cause the undeformed mesh to be cached for
flow objects. Dynamic paint has a similar exception, and other physics systems
avoid it by not being a constructive modifier.

5 years agoChange recent fix for T37864, now only check if the file is readonly
Campbell Barton [Thu, 19 Dec 2013 15:23:21 +0000 (02:23 +1100)]
Change recent fix for T37864, now only check if the file is readonly

Other error cases are already handled elsewhere

5 years agoFix T37795: Resetting a button to the default value could crash
Campbell Barton [Thu, 19 Dec 2013 14:04:01 +0000 (01:04 +1100)]
Fix T37795: Resetting a button to the default value could crash

Added ui_handle_afterfunc_add_operator so a button can queue an operator
to run without executing it immediately.

5 years agoFix missing F-Curve Generator modifier updates from the Python API.
Peter Staples [Thu, 19 Dec 2013 13:48:57 +0000 (14:48 +0100)]
Fix missing F-Curve Generator modifier updates from the Python API.

The poly_order and mode properties were missing update and range, now they
match the UI code.

Reviewed By: brecht

Differential Revision: http://developer.blender.org/D116

5 years agoSculpting:
Antony Riakiotakis [Thu, 19 Dec 2013 12:39:54 +0000 (14:39 +0200)]
Sculpting:

* Support for symmetry in lasso masking
* Optimize away symmetry multiplication of gravity vector if no gravity
active
* Move flip_v3_v3 to paint_utils (used in masking as well)
* Use OpenMP for mask flood fill too.

5 years agoPatch T19235: bmesh comments (with updates)
Campbell Barton [Thu, 19 Dec 2013 11:40:25 +0000 (22:40 +1100)]
Patch T19235: bmesh comments (with updates)

5 years agoCode Cleanup: remove duplicate errorstack
Campbell Barton [Thu, 19 Dec 2013 11:38:01 +0000 (22:38 +1100)]
Code Cleanup: remove duplicate errorstack

5 years agoFollowup for fix T37718: image was not saving with proper settings second time
Sergey Sharybin [Thu, 19 Dec 2013 11:17:40 +0000 (17:17 +0600)]
Followup for fix T37718: image was not saving with proper settings second time

This was actually a regression after color management re-implementation, need
to copy settings from saved image buffer to an original one since they might
be modified during save.

Also noticed image format planes detection didn't work properly from an image
buffer. Made it so save operator works fine now, but also marked a TODO in
BKE_imbuf_to_image_format() which needs to be investigated further.

5 years agoFix for T37864, save/save_as blend now refuses to save and report an error, when...
Thomas Dinges [Thu, 19 Dec 2013 08:54:02 +0000 (09:54 +0100)]
Fix for T37864, save/save_as blend now refuses to save and report an error, when filepath is not writeable.

5 years agoFix T37830: UILists text now right align.
Bastien Montagne [Thu, 19 Dec 2013 08:34:53 +0000 (09:34 +0100)]
Fix T37830: UILists text now right align.

Simply check for non-embossed TEX buttons inside uiList items, and align their text like labels do.

5 years agoFix T37387 VIEW3D_OT_view_selected in sculpt mode zooms far from
Antony Riakiotakis [Thu, 19 Dec 2013 03:09:42 +0000 (05:09 +0200)]
Fix T37387 VIEW3D_OT_view_selected in sculpt mode zooms far from
sculpted object if last sculpt stroke ends outside the mesh.

Code here used the last true location which is invalid in that case,
just reuse the average stroke location instead.

5 years agoSupport for symmetry in gravity.
Antony Riakiotakis [Thu, 19 Dec 2013 00:14:25 +0000 (02:14 +0200)]
Support for symmetry in gravity.

Also fix previous commit original coordinate change for proxy calculation
(broke all non-anchored brushes -facepalm-) and cache the gravity support
result.

5 years agoFix T37812, anchored sculpting on a flat plane created artifacts.
Antony Riakiotakis [Wed, 18 Dec 2013 23:48:30 +0000 (01:48 +0200)]
Fix T37812, anchored sculpting on a flat plane created artifacts.

This must be an ancient bug, almost as old as anchored brushes
themselves. Code did not do sphere node intersection against original
bounding boxes if an anchored brush required it. In practice this was
not easy to see because vertices were displaced inside brush radius most
of the time. However in the provided report file, displacement was far
away from the brush sphere, making the issue apparent.

Also added original check in proxy combination code (might cause issues
with dyntopo but quick test did not show any) and did some style int ->
bool style changes.

5 years agoFix T37807 gravity causes crashes when using shif-smoothing.
Antony Riakiotakis [Wed, 18 Dec 2013 22:48:26 +0000 (00:48 +0200)]
Fix T37807 gravity causes crashes when using shif-smoothing.

Turns out we didn't properly free node proxies that gravity did use and
strokes ended up accessing previous data. Also deactivated gravity when
a smooth brush is used. It is kind of distracting to get the mesh
gravitated while smoothing.

5 years agoFix T37691: Screw modifier created zero length normals
Campbell Barton [Wed, 18 Dec 2013 20:53:20 +0000 (07:53 +1100)]
Fix T37691: Screw modifier created zero length normals

5 years agoFix T37847: some buttons displayed too wide in multi-column menus.
Brecht Van Lommel [Wed, 18 Dec 2013 18:33:54 +0000 (19:33 +0100)]
Fix T37847: some buttons displayed too wide in multi-column menus.

5 years agoRevert svn r55587, fix for T34698 (Disable snap when transform axis is constrained)
Campbell Barton [Wed, 18 Dec 2013 17:54:11 +0000 (04:54 +1100)]
Revert svn r55587, fix for T34698 (Disable snap when transform axis is constrained)

Currently we don't properly support snapping + axis-constraints, but
there are cases where its handy to project-snap for eg, and constraint
to an axis so re-enable this.

5 years agoUI: avoid using AT define for malloc id's
Campbell Barton [Wed, 18 Dec 2013 16:08:48 +0000 (03:08 +1100)]
UI: avoid using AT define for malloc id's

They're very verbose and while useful for debugging leaks - a unique
string is normally enough to track down the problem.

5 years agoVertex/weight paint: remove "Use All Faces" option.
Brecht Van Lommel [Wed, 18 Dec 2013 16:49:01 +0000 (17:49 +0100)]
Vertex/weight paint: remove "Use All Faces" option.

This is now always enabled, when you want to paint on a individual faces you
can use face selection masking instead.

Fixes T37855.

5 years agoComment fix to previous commit
Antony Riakiotakis [Wed, 18 Dec 2013 16:36:07 +0000 (18:36 +0200)]
Comment fix to previous commit

5 years agoFix T37177, sculpting can act on opposite side of mesh in orthographic camera.
Antony Riakiotakis [Wed, 18 Dec 2013 16:34:02 +0000 (18:34 +0200)]
Fix T37177, sculpting can act on opposite side of mesh in orthographic camera.

Summary:
Issue here most probably is that the start point in ray-casting is too
far away from the mesh. As a result the triangle intersection code can
sometimes miss the ray intersection. To solve this, we project the ray
segment to the boundary of the root node.

Reviewers: brecht, sergey, campbellbarton

Reviewed By: brecht

Maniphest Tasks: T37177

Differential Revision: http://developer.blender.org/D115

5 years agoFix T37834: smoke opengl render not delivering correct alpha channel.
Brecht Van Lommel [Wed, 18 Dec 2013 16:24:52 +0000 (17:24 +0100)]
Fix T37834: smoke opengl render not delivering correct alpha channel.

5 years agoView3D: small optimization for smoke drawing
Campbell Barton [Wed, 18 Dec 2013 14:49:20 +0000 (01:49 +1100)]
View3D: small optimization for smoke drawing

5 years agoFix T37675: blender internal viewport render not updating properly with volumes.
Brecht Van Lommel [Wed, 18 Dec 2013 14:41:28 +0000 (15:41 +0100)]
Fix T37675: blender internal viewport render not updating properly with volumes.

5 years agoRevert fix for T37705: it's messing up the panel order in another place.
Brecht Van Lommel [Wed, 18 Dec 2013 14:10:40 +0000 (15:10 +0100)]
Revert fix for T37705: it's messing up the panel order in another place.

5 years agoFix T37705: texture panel order wrong when switching from cycles to blender render.
Brecht Van Lommel [Wed, 18 Dec 2013 12:15:13 +0000 (13:15 +0100)]
Fix T37705: texture panel order wrong when switching from cycles to blender render.

5 years agoFix T37790: OSL not rendering subsurface scattering color correct since upgrade to...
Brecht Van Lommel [Wed, 18 Dec 2013 11:29:11 +0000 (12:29 +0100)]
Fix T37790: OSL not rendering subsurface scattering color correct since upgrade to 1.4.

5 years agoFix T37843: area split widget missing in python console editor.
Brecht Van Lommel [Wed, 18 Dec 2013 11:02:31 +0000 (12:02 +0100)]
Fix T37843: area split widget missing in python console editor.

Python was indirectly causing redraw tags during drawing, which interfered
with the ARegion.drawrct, now ignore these during draw.

5 years agoFix T37837: mirror modifier merge does not place vertices at the center.
Brecht Van Lommel [Wed, 18 Dec 2013 10:14:24 +0000 (11:14 +0100)]
Fix T37837: mirror modifier merge does not place vertices at the center.

This was broken since BMesh.

5 years agoFix T37842: missing 3D view redraw when editing group layers and offset.
Brecht Van Lommel [Wed, 18 Dec 2013 09:52:40 +0000 (10:52 +0100)]
Fix T37842: missing 3D view redraw when editing group layers and offset.

5 years agoColor management: added utility function to apply processor on a pixel
Sergey Sharybin [Wed, 18 Dec 2013 09:51:09 +0000 (15:51 +0600)]
Color management: added utility function to apply processor on a pixel

It applies color management on a pixel in a way, based on number of
channels of this pixel.

Simplifies partial update code a bit.

5 years agoError in recent commit
Campbell Barton [Wed, 18 Dec 2013 09:31:41 +0000 (20:31 +1100)]
Error in recent commit

5 years agoColor management: get rid of original byte buffer partial update
Sergey Sharybin [Wed, 18 Dec 2013 09:20:07 +0000 (15:20 +0600)]
Color management: get rid of original byte buffer partial update

It was only used by opengl render and in fact it needed just to
set DISPLAY_BUFFER_INVALID flag for the image buffer.

In theory it wouldn't make any change to opengl render speed
(because this change just moved rect_from_float from color
management code to image save code). And could not see any speed
changes on my laptop.

5 years agoFix for button selection offset
Campbell Barton [Wed, 18 Dec 2013 08:28:59 +0000 (19:28 +1100)]
Fix for button selection offset

Was using a different font size with selection and drawing,
But scaling both so they mostly matched.

This made selection shift noticeably when done on an interface zoomed in/out.

5 years agoBLF: debug function to print a fonts state
Campbell Barton [Wed, 18 Dec 2013 08:18:55 +0000 (19:18 +1100)]
BLF: debug function to print a fonts state

5 years agoCode Clenaup: use const for button checking functions
Campbell Barton [Wed, 18 Dec 2013 06:47:38 +0000 (17:47 +1100)]
Code Clenaup: use const for button checking functions

5 years agoFix artifact in partial buffer update after recent changes
Sergey Sharybin [Wed, 18 Dec 2013 08:05:06 +0000 (14:05 +0600)]
Fix artifact in partial buffer update after recent changes

The issue wasn't new in fact, just partial buffer update
function was still broken. Not sure how those issues were
not noticed for so long.

Perhaps partial_buffer_update_rect() could be simplified,
but i've got some more upcoming changes here which might
run into conflicts if i'll do simplification now.

5 years agoCode cleanup: Game Engine related panels belong into properties_game.py.
Thomas Dinges [Wed, 18 Dec 2013 06:35:05 +0000 (07:35 +0100)]
Code cleanup: Game Engine related panels belong into properties_game.py.

5 years agoUI: more fixes for text clipping
Campbell Barton [Wed, 18 Dec 2013 06:11:38 +0000 (17:11 +1100)]
UI: more fixes for text clipping

Were still cases where numbers could be clipped incorrectly and icon
size was accounted for twice when left clipping (error in own recent commit).

5 years agoError in last commit
Campbell Barton [Wed, 18 Dec 2013 04:37:55 +0000 (15:37 +1100)]
Error in last commit

5 years agoStyle Cleanup: minor edits in recent changes
Campbell Barton [Wed, 18 Dec 2013 04:35:31 +0000 (15:35 +1100)]
Style Cleanup: minor edits in recent changes

5 years agoStyle Cleanup
Campbell Barton [Wed, 18 Dec 2013 04:34:56 +0000 (15:34 +1100)]
Style Cleanup

5 years agoGame Engine: Level of detail support and tools
Daniel Stokes [Tue, 17 Dec 2013 22:42:47 +0000 (14:42 -0800)]
Game Engine: Level of detail support and tools

Levels of detail can be added and modified in the object panel. The object
panel also contains new tools for generating levels of detail, setting up
levels of detail based on object names (useful for importing), and
clearing an object's level of detail settings. This is meant as a game
engine feature, though the level of details settings can be previewed in
the viewport.

Reviewed By: moguri, nexyon, brecht

Differential Revision: http://developer.blender.org/D109

5 years agoFix compile on MSVC, we don't use "isfinite" anywhere else inside source/blender ;)
Thomas Dinges [Tue, 17 Dec 2013 20:36:27 +0000 (21:36 +0100)]
Fix compile on MSVC, we don't use "isfinite" anywhere else inside source/blender ;)

5 years agoFix issue with right aligned number buttons overlapping the label
Campbell Barton [Tue, 17 Dec 2013 20:15:25 +0000 (07:15 +1100)]
Fix issue with right aligned number buttons overlapping the label

This also simplifies button clipping which was attempting to detect
offsets that were applied afterwards,
Now apply text clipping after adjusting the button rect margins.

5 years agoCode Cleanup: comment unused functions
Campbell Barton [Tue, 17 Dec 2013 18:07:49 +0000 (05:07 +1100)]
Code Cleanup: comment unused functions

5 years agoUI: Theme Colors for Info space
Sv. Lockal [Tue, 17 Dec 2013 18:02:42 +0000 (05:02 +1100)]
UI: Theme Colors for Info space

5 years agoChanges to partial update during rendering
Sergey Sharybin [Tue, 17 Dec 2013 17:42:38 +0000 (23:42 +0600)]
Changes to partial update during rendering

Summary:
Mainly addressed to solve old TODO with color managed fallback
to CPU mode when displaying render result during rendering.

That fallback was caused by the fact that partial image update
was always acquiring image buffer for composite output and was
only modifying display buffer directly.

This was a big issue for Cycles rendering which renders layers
one by one and wanted to display progress of each individual
layer. This lead to situations when display buffer was based on
what Cycles passes via RenderResult and didn't take layer/pass
from image editor header into account.

Now made it so image buffer which partial update is operating
with always corresponds to what is set in image editor header.

To make Cycles displaying progress of all the layers one by one
made it so image_rect_update switches image editor user to
newly rendering render layer. It happens only once when render
engine starts rendering next render layer, so should not be
annoying for navigation during rendering.

Additional change to render engines was done to make it so
they're able to merge composite output to final result
without marking tile as done. This is done via do_merge_result
argument to end_result() callback. This argument is optional
so should not break script compatibility.

Additional changes:

- Partial display update for Blender Internal now happens from
  the same thread as tile rendering. This makes it so display
  conversion (which could be pretty heavy actually) is done in
  separate threads. Also gives better UI feedback when rendering
  easy scene with small tiles.

- Avoid freeing/allocating byte buffer for render result
  if it's owned by the image buffer. Only mark it as invalid
  for color management.

  Saves loads of buffer re-allocations in cases when having
  several image editors opened with render result. This change
  in conjunction with the rest of the patch gave around
  50%-100% speedup of render time when displaying non-combined
  pass during rendering on my laptop.

- Partial display buffer update was wrong for buffers with number
  of channels different from 4.

- Remove unused window from RenderJob.

- Made image_buffer_rect_update static since it's only used
  in single file.

Reviewers: brecht

Reviewed By: brecht

CC: dingto
Differential Revision: http://developer.blender.org/D98

5 years agoFix T37718: Texture compression missing
Sergey Sharybin [Tue, 17 Dec 2013 16:16:53 +0000 (22:16 +0600)]
Fix T37718: Texture compression missing

Make sure image will saved as (not over) after changing
it's type to Generated by clearing image's path in signal
handler.

5 years agoCode Cleanup: comment unused define
Campbell Barton [Tue, 17 Dec 2013 13:20:18 +0000 (00:20 +1100)]
Code Cleanup: comment unused define

5 years agoFix compile after last commit, casting to (bArmature *), kudos to JesterKing
Jens Verwiebe [Tue, 17 Dec 2013 13:14:03 +0000 (14:14 +0100)]
Fix compile after last commit, casting to (bArmature *), kudos to JesterKing

5 years ago'Transform' Python Function for armature, curve and lattice.
Campbell Barton [Tue, 17 Dec 2013 11:13:15 +0000 (22:13 +1100)]
'Transform' Python Function for armature, curve and lattice.

patch by Paolo Acampora with some edits.

5 years agoFix bplayer broken in own rB51f5c994e9f0.
Bastien Montagne [Tue, 17 Dec 2013 09:46:21 +0000 (10:46 +0100)]
Fix bplayer broken in own rB51f5c994e9f0.

5 years agoCycles / OpenCL: Fix compile error on OS X
Thomas Dinges [Tue, 17 Dec 2013 08:54:36 +0000 (09:54 +0100)]
Cycles / OpenCL: Fix compile error on OS X

After update to Mac OS X 10.9.1, OpenCL works now on my Intel CPU in the 2013 Macbook Pro (even the entire kernel).
The Intel Iris Pro GPU still segfaults here though, even when all flags are disabled (building "clay like" kernel only).

Maybe we need the -no-missing-prototypes for AMD hardware still, but I couldn't find a way to distuinguish here.