8 years agoColor Management: don't apply display transform on Non-Color images
Sergey Sharybin [Wed, 19 Sep 2012 15:01:36 +0000 (15:01 +0000)]
Color Management: don't apply display transform on Non-Color images

Also don't color manage data buffers in texture painting.

Makes it possible to view heights and normal maps in proper space
and also paint on them without applying extra transformation.

8 years agoFix crash when tracking in planar motion model (and maybe some other)
Sergey Sharybin [Wed, 19 Sep 2012 12:43:39 +0000 (12:43 +0000)]
Fix crash when tracking in planar motion model (and maybe some other)

It was an Abort() caused by check for solver result not equal to USER_ABORT.

In some cases solver returns USER_ABORT due to BoundaryCheckingCallback
detects coordinates does not belong to image.

Somehow this callback wasn't called in previous version of Ceres and
in the same case marker was jumping. Now when the callback is called
it seems we could simply return failure of tracking without aborting

Probably this is in fact some issue somewhere else, would double
check with Keir about this.

8 years agoTracking: fixed crash when reference frame fails to be loaded
Sergey Sharybin [Wed, 19 Sep 2012 12:43:32 +0000 (12:43 +0000)]
Tracking: fixed crash when reference frame fails to be loaded

8 years agojoining mesh objects now keeps relative key setting of each keyblock. also joining...
Campbell Barton [Wed, 19 Sep 2012 12:11:28 +0000 (12:11 +0000)]
joining mesh objects now keeps relative key setting of each keyblock. also joining absolute shapekeys now sorts by time.

8 years agocode cleanup: make shape key api names consistent with our new convention.
Campbell Barton [Wed, 19 Sep 2012 10:12:07 +0000 (10:12 +0000)]
code cleanup: make shape key api names consistent with our new convention.

8 years agofix for missing NULL check in init_render_texture() (possibly own fault), also remove...
Campbell Barton [Wed, 19 Sep 2012 08:09:22 +0000 (08:09 +0000)]
fix for missing NULL check in init_render_texture() (possibly own fault), also remove some redundant code.

8 years agofix txt_redo_read_unicode() missing break - reading 4 byte unicode would fail, same...
Campbell Barton [Wed, 19 Sep 2012 08:07:23 +0000 (08:07 +0000)]
fix txt_redo_read_unicode() missing break - reading 4 byte unicode would fail, same fix was made for txt_undo_read_unicode() recently.

8 years agofix MESH_OT_tris_convert_to_quads() limit options (uv and vertex color) were not...
Campbell Barton [Wed, 19 Sep 2012 04:48:34 +0000 (04:48 +0000)]
fix MESH_OT_tris_convert_to_quads() limit options (uv and vertex color) were not working at all.

8 years agofix buffer overrun when 5+ sided faces were used for text drawing.
Campbell Barton [Wed, 19 Sep 2012 02:06:27 +0000 (02:06 +0000)]
fix buffer overrun when 5+ sided faces were used for text drawing.

8 years agocode cleanup: marker transform was doing some redundant/misleading assignments &...
Campbell Barton [Wed, 19 Sep 2012 01:34:10 +0000 (01:34 +0000)]
code cleanup: marker transform was doing some redundant/misleading assignments & checks, remove unused cruft.
also remove some other redundant checks.

8 years agofix buffer overrun in make_histogram_view_from_ibuf_byte(), use define for buffer...
Campbell Barton [Wed, 19 Sep 2012 00:56:09 +0000 (00:56 +0000)]
fix buffer overrun in make_histogram_view_from_ibuf_byte(), use define for buffer size so this wont happen again.

8 years agofix [#32575] Seperate more than one object from a mesh generates additional edges
Campbell Barton [Wed, 19 Sep 2012 00:09:14 +0000 (00:09 +0000)]
fix [#32575] Seperate more than one object from a mesh generates additional edges

8 years agoColor management: fix crashes and memory leaks when using custom OCIO configuration
Brecht Van Lommel [Tue, 18 Sep 2012 19:20:26 +0000 (19:20 +0000)]
Color management: fix crashes and memory leaks when using custom OCIO configuration
Also fix some missing color spaces when loading some OCIO configurations, by falling
back to scene linear if role is not found. There can still be some errors in the
console, need to check this further.

8 years agoColor management: default to Save as Render when saving an image datablock with
Brecht Van Lommel [Tue, 18 Sep 2012 19:20:23 +0000 (19:20 +0000)]
Color management: default to Save as Render when saving an image datablock with
View as Render enabled.

8 years agoFix crash editing mask with no image in the image editor.
Brecht Van Lommel [Tue, 18 Sep 2012 19:20:21 +0000 (19:20 +0000)]
Fix crash editing mask with no image in the image editor.

8 years agoFix #31539, painting in image editor while in object mode does not update mipmaps.
Antony Riakiotakis [Tue, 18 Sep 2012 15:58:07 +0000 (15:58 +0000)]
Fix #31539, painting in image editor while in object mode does not update mipmaps.

While we could disable/enable mipmaps on stroke begin/end, it is a bit hacky (but worthy of consideration for later) for my taste just to paint in the image editor. Instead we generate mipmaps on the fly. Since we can update texture levels below the first only with GPU mipmapping, partial update when painting in the image editor will actually work only with GPU mipmapping from now on (which is fast enough I hope not to get any lags!).

8 years agoFix for own r50715 (static func is much better here!)...
Bastien Montagne [Tue, 18 Sep 2012 15:13:45 +0000 (15:13 +0000)]
Fix for own r50715 (static func is much better here!)...

8 years agodo_version fix files with bad keyblock uid caused by byg [#31569]
Campbell Barton [Tue, 18 Sep 2012 14:40:02 +0000 (14:40 +0000)]
do_version fix files with bad keyblock uid caused by byg [#31569]

8 years agofix [#31569] Shapekey w/ Driver - Shapekey Influences Disappears After Going to Edit...
Campbell Barton [Tue, 18 Sep 2012 14:29:01 +0000 (14:29 +0000)]
fix [#31569] Shapekey w/ Driver - Shapekey Influences Disappears After Going to Edit Mode

joining meshes would allow shape key UID's not to be unique.
This was caused by join adding new key blocks inline, now use add_keyblock() like everywhere else does.

8 years ago-Wnonnull flag is not for C++. I think we all know it by now, time to
Antony Riakiotakis [Tue, 18 Sep 2012 14:17:10 +0000 (14:17 +0000)]
-Wnonnull flag is not for C++. I think we all know it by now, time to
get rid of it.

8 years agodon't divide by zero in get_ss_weights() which would set values - only to be overwritten.
Campbell Barton [Tue, 18 Sep 2012 12:53:41 +0000 (12:53 +0000)]
don't divide by zero in get_ss_weights() which would set values - only to be overwritten.
useful when using --debug-fpe since this isnt and exceptional case.

8 years agoRevert part of rev50719, it's not actually needed and it always
Sergey Sharybin [Tue, 18 Sep 2012 11:21:57 +0000 (11:21 +0000)]
Revert part of rev50719, it's not actually needed and it always
invalidates render result display buffers.

8 years agoCeres: resolve no previous declarations warnings
Sergey Sharybin [Tue, 18 Sep 2012 11:01:51 +0000 (11:01 +0000)]
Ceres: resolve no previous declarations warnings

Currently done as patch applied on bundling, would forward it to Ceres developers.

8 years agofix [#32572] Windows: False error on console when a new folder is created during...
Campbell Barton [Tue, 18 Sep 2012 10:51:48 +0000 (10:51 +0000)]
fix [#32572] Windows: False error on console when a new folder is created during a save or export operation

8 years agoLibmv: resolved some compilation warnings (missed prototypes)
Sergey Sharybin [Tue, 18 Sep 2012 10:31:00 +0000 (10:31 +0000)]
Libmv: resolved some compilation warnings (missed prototypes)

In some cases it was missed include of header file, in some other
cases symbol could be static.

8 years agoColor Management: fixed crash when changing display device in screenshot save operator
Sergey Sharybin [Tue, 18 Sep 2012 10:11:46 +0000 (10:11 +0000)]
Color Management: fixed crash when changing display device  in screenshot save operator

In fact, color management settings shouldn't be editing from this operator since
screenshot is using OpenGL which is in sRGB space, but fixed issues with Image
Format initialization and added NULL pointer checks.

8 years agoFixed missing display buffer invalidation when rendering sequencer animation
Sergey Sharybin [Tue, 18 Sep 2012 08:40:53 +0000 (08:40 +0000)]
Fixed missing display buffer invalidation when rendering sequencer animation

8 years agofix own error BLI_rctf_cent_x/y were incorrectly returning int's, also quiet some...
Campbell Barton [Tue, 18 Sep 2012 08:00:19 +0000 (08:00 +0000)]
fix own error BLI_rctf_cent_x/y were incorrectly returning int's, also quiet some warnings.

8 years ago"Colospace" -> "Color Space" (in UI messages).
Bastien Montagne [Tue, 18 Sep 2012 07:14:16 +0000 (07:14 +0000)]
"Colospace" -> "Color Space" (in UI messages).

8 years agoLibmv: fixed wrong function prototypes
Sergey Sharybin [Tue, 18 Sep 2012 07:09:07 +0000 (07:09 +0000)]
Libmv: fixed wrong function prototypes

Also mark non-public functions as static.

8 years agoSmall fixes to languages names (thx to Dalai Felinto for the hints), and enable build...
Bastien Montagne [Tue, 18 Sep 2012 07:03:23 +0000 (07:03 +0000)]
Small fixes to languages names (thx to Dalai Felinto for the hints), and enable building with collada under gcc in paranoid warnings=errors mode (function prototypes needed)...

8 years agoCompilation error fix: plain C dos not support mixed declarations and cod
Sergey Sharybin [Tue, 18 Sep 2012 06:16:38 +0000 (06:16 +0000)]
Compilation error fix: plain C dos not support mixed declarations and cod

8 years agofix for segfault when trying to link a sensor with an actuator from an object differe...
Dalai Felinto [Tue, 18 Sep 2012 05:34:31 +0000 (05:34 +0000)]
fix for segfault when trying to link a sensor with an actuator from an object different than the active.
Campbell raised a preference on using direct C calls instead of WM_operator_name_call(). But since the original commit for 'smart controller' was already using it, this is something for a different commit

8 years agocode cleanup: remove vertex/weight paint's VP_COLINDEX, this feature worked in the...
Campbell Barton [Tue, 18 Sep 2012 04:55:52 +0000 (04:55 +0000)]
code cleanup: remove vertex/weight paint's VP_COLINDEX, this feature worked in the code but wasnt accessible from the UI this wasn't even accessible from the UI in 2.4x.
This would only paint onto faces from the active material. however we're better off using selection here IMHO (adding support for material selection in paint mask mode).

also quiet some warnings.

8 years agocode cleanup: use system includes for cmake, otherwise warnings get printed in headers.
Campbell Barton [Tue, 18 Sep 2012 04:40:20 +0000 (04:40 +0000)]
code cleanup: use system includes for cmake, otherwise warnings get printed in headers.

8 years agofix for a strange linking error where set_property() in source/blender/blenkernel...
Campbell Barton [Tue, 18 Sep 2012 04:35:30 +0000 (04:35 +0000)]
fix for a strange linking error where set_property() in source/blender/blenkernel/intern/property.c would get mixed up with an X11 function of the same name. it crashed blender loading on my system.

Give functions in property.c more unique names.

8 years agocode cleanup: warnings
Campbell Barton [Tue, 18 Sep 2012 03:15:12 +0000 (03:15 +0000)]
code cleanup: warnings

8 years agofix for scene not copying image format color management for settings.
Campbell Barton [Tue, 18 Sep 2012 03:14:31 +0000 (03:14 +0000)]
fix for scene not copying image format color management for settings.

8 years agofix own error in r49994
Campbell Barton [Tue, 18 Sep 2012 01:24:32 +0000 (01:24 +0000)]
fix own error in r49994

8 years agowiki reference checker now prints undocumented sections, more helpful then a massive...
Campbell Barton [Tue, 18 Sep 2012 00:41:00 +0000 (00:41 +0000)]
wiki reference checker now prints undocumented sections, more helpful then a massive list of all props.

8 years agoextra error check for validator, that rna_wiki_reference...
Campbell Barton [Tue, 18 Sep 2012 00:27:13 +0000 (00:27 +0000)]
extra error check for validator, that uses correct structure.

8 years agocode cleanup: remove unused defines
Campbell Barton [Mon, 17 Sep 2012 23:05:58 +0000 (23:05 +0000)]
code cleanup: remove unused defines

8 years agocode cleanup: warning and style
Campbell Barton [Mon, 17 Sep 2012 22:34:42 +0000 (22:34 +0000)]
code cleanup: warning and style

8 years agocode cleanup: typos and set exceptional cases of zero length normals as UNLIKELY().
Campbell Barton [Mon, 17 Sep 2012 22:22:06 +0000 (22:22 +0000)]
code cleanup: typos and set exceptional cases of zero length normals as UNLIKELY().

8 years agofix for bug setting single user obdata while in editmode, it didnt work (made many...
Campbell Barton [Mon, 17 Sep 2012 22:19:50 +0000 (22:19 +0000)]
fix for bug setting single user obdata while in editmode, it didnt work (made many copies but didn't assign them), so disable it.

8 years ago== filebrowser ==
Andrea Weikert [Mon, 17 Sep 2012 21:38:04 +0000 (21:38 +0000)]
== filebrowser ==
added operator for resetting (cleaning up) the recent folders list in the file-browser panels.
(small and low risk request by dfelinto)

8 years ago== filebrowser ==
Andrea Weikert [Mon, 17 Sep 2012 21:29:30 +0000 (21:29 +0000)]
== filebrowser ==
further fixes for 'RECENT' files panel in filebrowser:
* Also add the recent folder at the head if it is not yet in the list
* since we now insert at the head, we need to remove the skipping of the first entries if there are too many. Now correctly leaving the last elements unwritten.
* Another consequence of inserting at the head is that we don't want to reverse the list in the recent panel anymore - got rid of the corresponding code.

8 years agofix: obvious bug in recent fix for the 'recent file' bookmark order.
Andrea Weikert [Mon, 17 Sep 2012 20:16:34 +0000 (20:16 +0000)]
fix: obvious bug in recent fix for the 'recent file' bookmark order.

8 years agoRevert r50528: "Performance fix for Cycles: Don't wait in the main UI thread when...
Lukas Toenne [Mon, 17 Sep 2012 12:07:06 +0000 (12:07 +0000)]
Revert r50528: "Performance fix for Cycles: Don't wait in the main UI thread when resetting devices."

This commit leads to random freezes in Cycles rendering:

The goal of this commit was to remove UI lag for OSL, but since that is not officially supported yet, better revert it until a proper fix can be implemented in 2.65.

8 years agoUpdating mingw32 config to reflect new boost libraries in svn
Joshua Leung [Mon, 17 Sep 2012 12:05:18 +0000 (12:05 +0000)]
Updating mingw32 config to reflect new boost libraries in svn
(1.47 -> 1.49)

8 years agoFix cycles panorama camera not working with depth of field, patch by
Brecht Van Lommel [Mon, 17 Sep 2012 11:25:29 +0000 (11:25 +0000)]
Fix cycles panorama camera not working with depth of field, patch by
Daniel M. Basso, thanks!

8 years agoFix mac build issue after recent file browser fix.
Brecht Van Lommel [Mon, 17 Sep 2012 11:25:10 +0000 (11:25 +0000)]
Fix mac build issue after recent file browser fix.

8 years agoCycles: change preview "resolution divider" that gave the number of lower
Brecht Van Lommel [Mon, 17 Sep 2012 10:55:18 +0000 (10:55 +0000)]
Cycles: change preview "resolution divider" that gave the number of lower
resolutions to render, to a "start resolution" which gives the resolution
to start at.

This avoids unnecessary rendering of small resolutions in small viewports,
and avoids long waiting on big viewports.

8 years agoUI: cosmetic tweak to render/animation/play buttons, align, change icon.
Brecht Van Lommel [Mon, 17 Sep 2012 10:54:50 +0000 (10:54 +0000)]
UI: cosmetic tweak to render/animation/play buttons, align, change icon.

8 years agoRelease Cycles:
Thomas Dinges [Mon, 17 Sep 2012 10:50:13 +0000 (10:50 +0000)]
Release Cycles:
* Bump BLENDER_VERSION_CYCLE to rc. BCon4, bugfixes only.

8 years agoFix compilation for non GCC compilers
Sergej Reich [Mon, 17 Sep 2012 10:18:28 +0000 (10:18 +0000)]
Fix compilation for non GCC compilers

Was simple copy pase error.

8 years agoFix compilation issue, also get rid of annoying "_MSC_VER not defined"
Antony Riakiotakis [Mon, 17 Sep 2012 08:36:47 +0000 (08:36 +0000)]
Fix compilation issue, also get rid of annoying "_MSC_VER not defined"
preprocessor ambiguity for MinGW

8 years agoRemove obsolete code from BKE_tracking_marker_clamp
Sergey Sharybin [Mon, 17 Sep 2012 07:12:02 +0000 (07:12 +0000)]
Remove obsolete code from BKE_tracking_marker_clamp

8 years agoFixed crash in cases sequencer returns NULL image buffer
Sergey Sharybin [Mon, 17 Sep 2012 07:09:11 +0000 (07:09 +0000)]
Fixed crash in cases sequencer returns NULL image buffer

Happens when there's no strip under current frame. Simply added NULL-check.

8 years agofix [#32442] UNDO causes actual shape key to be lost, undoing a modification of anoth...
Campbell Barton [Mon, 17 Sep 2012 06:14:09 +0000 (06:14 +0000)]
fix [#32442] UNDO causes actual shape key to be lost, undoing a modification of another shape key.

8 years agoadd endian switching to mask shape key loading (loading mask animations between big...
Campbell Barton [Mon, 17 Sep 2012 05:31:41 +0000 (05:31 +0000)]
add endian switching to mask shape key loading (loading mask animations between big/little endian systems would break), also set attributes to BLI_endian_switch_* functions.

8 years agocode cleanup: fsmenu.c names were confusing - fsms / fsme / prev --> fsm_head / fsm_i...
Campbell Barton [Mon, 17 Sep 2012 04:29:43 +0000 (04:29 +0000)]
code cleanup: fsmenu.c names were confusing - fsms / fsme / prev --> fsm_head / fsm_iter / fsm_prev

8 years agocode cleanup: correct include paths and comment
Campbell Barton [Mon, 17 Sep 2012 04:08:36 +0000 (04:08 +0000)]
code cleanup: correct include paths and comment

8 years agofix [#32564] Entries in recent list (file select dialog) don't get pushed to top...
Campbell Barton [Mon, 17 Sep 2012 02:19:41 +0000 (02:19 +0000)]
fix [#32564] Entries in recent list (file select dialog) don't get pushed to top if used again

8 years agocode cleanup: replace fsmenu_insert_entry args with flags.
Campbell Barton [Mon, 17 Sep 2012 02:01:09 +0000 (02:01 +0000)]
code cleanup: replace fsmenu_insert_entry args with flags.

8 years agostyle cleanup
Campbell Barton [Mon, 17 Sep 2012 01:42:47 +0000 (01:42 +0000)]
style cleanup

8 years agocode cleanup: text clipping function ui_text_leftclip() was also used for cursor...
Campbell Barton [Mon, 17 Sep 2012 00:57:33 +0000 (00:57 +0000)]
code cleanup: text clipping function ui_text_leftclip() was also used for cursor clipping which made it a bit confusing, split into 2 functions. ui_text_clip_left(), ui_text_clip_cursor().

8 years agocode cleanup: add some comments and made some small speedup to text clipping in the UI
Campbell Barton [Mon, 17 Sep 2012 00:33:07 +0000 (00:33 +0000)]
code cleanup: add some comments and made some small speedup to text clipping in the UI

8 years agostyle cleanup: multiple statements on a single line in interface code.
Campbell Barton [Sun, 16 Sep 2012 23:40:03 +0000 (23:40 +0000)]
style cleanup: multiple statements on a single line in interface code.

8 years agofix for node socket text buttons not scaling with DPI, also quiet -Wundef warning...
Campbell Barton [Sun, 16 Sep 2012 23:24:26 +0000 (23:24 +0000)]
fix for node socket text buttons not scaling with DPI, also quiet -Wundef warning WITH_DDS.

8 years ago* Enable opencolorio for scons/mingw32 (coming very soon)
Antony Riakiotakis [Sun, 16 Sep 2012 20:26:28 +0000 (20:26 +0000)]
* Enable opencolorio for scons/mingw32 (coming very soon)
* Change names of libraries for mingw32 boost to 1.49

8 years agoFix drawing of output slots with utf-8 names. Also always show last letters in alread...
Sv. Lockal [Sun, 16 Sep 2012 19:06:17 +0000 (19:06 +0000)]
Fix drawing of output slots with utf-8 names. Also always show last letters in already clipped output slots names

8 years agoEnable OpenColorIO for MinGW64 build targets
Antony Riakiotakis [Sun, 16 Sep 2012 18:05:32 +0000 (18:05 +0000)]
Enable OpenColorIO for MinGW64 build targets

8 years agoFew cleanup in matrix mathutils (make mul_m3_m3m4 and mul_m4_m3m4 consistant with...
Bastien Montagne [Sun, 16 Sep 2012 15:25:28 +0000 (15:25 +0000)]
Few cleanup in matrix mathutils (make mul_m3_m3m4 and mul_m4_m3m4 consistant with other similar funcs, mainly copy-safe [i.e. you can use the same matrix as operand and result, saves lines in some already over-complicated code!]).

8 years agoColor Management: fix crash when displaying render preview if OCIO was disabled buildtime
Sergey Sharybin [Sun, 16 Sep 2012 15:17:22 +0000 (15:17 +0000)]
Color Management: fix crash when displaying render preview if OCIO was disabled buildtime

8 years agoReal fix for OSX CMake -- was a typo in build file generation file
Sergey Sharybin [Sun, 16 Sep 2012 14:43:44 +0000 (14:43 +0000)]
Real fix for OSX CMake -- was a typo in build file generation file

Now Ceres re-bundling should go smooth :)

8 years agoFix OSX compile
Jens Verwiebe [Sun, 16 Sep 2012 14:31:25 +0000 (14:31 +0000)]
Fix OSX compile

8 years agoFix typo in one of previous commits
Sergey Sharybin [Sun, 16 Sep 2012 13:58:15 +0000 (13:58 +0000)]
Fix typo in one of previous commits

8 years agoOSL Fix for fireflies in velvet bsdf, ported over from SVM fix in r41738.
Lukas Toenne [Sun, 16 Sep 2012 13:17:39 +0000 (13:17 +0000)]
OSL Fix for fireflies in velvet bsdf, ported over from SVM fix in r41738.

8 years agoFix some warnings treated as errors here.
Sergey Sharybin [Sun, 16 Sep 2012 12:33:39 +0000 (12:33 +0000)]
Fix some warnings treated as errors here.

8 years agoCeres: tweak namespace for hash classes for MSVC2010
Sergey Sharybin [Sun, 16 Sep 2012 12:24:54 +0000 (12:24 +0000)]
Ceres: tweak namespace for hash classes for MSVC2010

Not sure if it'll solve all issues, but at least it should reduce
amount of errors.

Also added missed patch from previous commit.

8 years agoCeres: reshuffle include order to solve compilation error with MSVC
Sergey Sharybin [Sun, 16 Sep 2012 12:24:48 +0000 (12:24 +0000)]
Ceres: reshuffle include order to solve compilation error with MSVC

Not sure why exactly this happens, would need extra investigation
and should probably be also fixed in upstream.

8 years agoLibmv: remove unwind hack from CMake rules.
Sergey Sharybin [Sun, 16 Sep 2012 12:24:43 +0000 (12:24 +0000)]
Libmv: remove unwind hack from CMake rules.

Such stuff better be solved in glog itself.

Should be pretty safe change since it was defined for CMake only
and AFAIR Jens wanted to get rid of this too.

8 years agoCeres: upgrade to version 1.3.0
Sergey Sharybin [Sun, 16 Sep 2012 12:24:37 +0000 (12:24 +0000)]
Ceres: upgrade to version 1.3.0

This should contain real fixes for Windows, making it more robost and hopefully
faster (due to proper collection port) on that platform.

Also hack to fix Eigen alignment shouldn't be needed anymore.

Also on platforms which have got broken TR1 collections it's better to define
CERES_NO_TR1 instead of using Boost hacks. Made changes to Scons and CMake,
but can not check if this indeed works since i don't have OSX here.

8 years agoCeres: remove debug-only code from bundling script, also move osx workaround to template
Sergey Sharybin [Sun, 16 Sep 2012 12:23:00 +0000 (12:23 +0000)]
Ceres: remove debug-only code from bundling script, also move osx workaround to template

8 years agoCode cleanup - Remove/update outdated comments and whitespace tweaks
Joshua Leung [Sun, 16 Sep 2012 11:19:36 +0000 (11:19 +0000)]
Code cleanup - Remove/update outdated comments and whitespace tweaks

8 years agouse the format attribute in more places, disable X11 options when building with GHOST_SDL
Campbell Barton [Sun, 16 Sep 2012 10:39:19 +0000 (10:39 +0000)]
use the format attribute in more places, disable X11 options when building with GHOST_SDL

8 years agospeedup for vertex parent lookups, were looping over array elements when it wasn...
Campbell Barton [Sun, 16 Sep 2012 08:25:31 +0000 (08:25 +0000)]
speedup for vertex parent lookups, were looping over array elements when it wasn't needed for lattice and curves, and in some cases meshes.

do dirrect array lookups instead where possible.

8 years agoBugfix [#32501] Protected layer bones transform buttons are greyed out/inactive
Joshua Leung [Sun, 16 Sep 2012 07:27:43 +0000 (07:27 +0000)]
Bugfix [#32501] Protected layer bones transform buttons are greyed out/inactive

Since the transform values for bones in protected layers can be animated again
using many of the common tools, it makes sense that the transform properties for
these are allowed to be edited too.

I've left the rotation mode setting as a "proxy locked" value for now, since
this seems more like something that's defined as part of the rig creation (and
best left alone by animators).

8 years agoCode cleanup - remove some obsolete code
Joshua Leung [Sun, 16 Sep 2012 07:14:15 +0000 (07:14 +0000)]
Code cleanup - remove some obsolete code

8 years agostyle cleanup
Campbell Barton [Sun, 16 Sep 2012 04:58:18 +0000 (04:58 +0000)]
style cleanup

8 years agofix for error in recent commit (made function static that shouldn't have been), add...
Campbell Barton [Sun, 16 Sep 2012 01:35:00 +0000 (01:35 +0000)]
fix for error in recent commit (made function static that shouldn't have been), add extra gcc warnings to cmake.

8 years agocode cleanup: quiet warnings for gcc's -Wundef, -Wmissing-declarations
Campbell Barton [Sun, 16 Sep 2012 00:26:36 +0000 (00:26 +0000)]
code cleanup: quiet warnings for gcc's -Wundef, -Wmissing-declarations

8 years agocode cleanup: make local game engine functions static
Campbell Barton [Sun, 16 Sep 2012 00:22:55 +0000 (00:22 +0000)]
code cleanup: make local game engine functions static

8 years agocode cleanup: remove unused structs and also some style cleanup.
Campbell Barton [Sat, 15 Sep 2012 23:13:24 +0000 (23:13 +0000)]
code cleanup: remove unused structs and also some style cleanup.

8 years agoremove unused parts of raskter module.
Campbell Barton [Sat, 15 Sep 2012 23:05:34 +0000 (23:05 +0000)]
remove unused parts of raskter module.

8 years agoYet another OSL fix: Some functions are missing stubs that were not used in old OSL...
Lukas Toenne [Sat, 15 Sep 2012 18:08:51 +0000 (18:08 +0000)]
Yet another OSL fix: Some functions are missing stubs that were not used in old OSL implementation yet.

8 years agoFix for OSL 'Normal' node: the Direction parameter is of 'normal' type instead of...
Lukas Toenne [Sat, 15 Sep 2012 16:31:11 +0000 (16:31 +0000)]
Fix for OSL 'Normal' node: the Direction parameter is of 'normal' type instead of generic 'vector'.

8 years agoGenerate compatible OSL shader parameter names in cases where the node has and input...
Lukas Toenne [Sat, 15 Sep 2012 16:31:07 +0000 (16:31 +0000)]
Generate compatible OSL shader parameter names in cases where the node has and input and output with the same name. In that case the convention is to add suffixes "In" and "Out" respectively.

Blender node has one input "Color" and one output "Color"

-> OSL parameter names should be "ColorIn" and "ColorOut"

8 years agoOSL implementation of RGB ramp node.
Lukas Toenne [Sat, 15 Sep 2012 15:41:37 +0000 (15:41 +0000)]
OSL implementation of RGB ramp node.

The sampled color ramp data is passed to OSL as a color array. This has to be done as actual float[3] array though, since the Cycles float3 type actually contains 4 floats, leading to shifting color components in the array.

Additional parameter set functions for arrays have been added to the Cycles OSL interface for this purpose.