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

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

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

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

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

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

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

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

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

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

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

Rename property Trackness to Trackability

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Removing workarounds for alpha channels.

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

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

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

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

This fixed two issues:

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

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

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

10 years agoMore UI messages fixes and tweaks (found while translating in french).
Bastien Montagne [Sun, 20 Nov 2011 15:58:50 +0000 (15:58 +0000)]
More UI messages fixes and tweaks (found while translating in french).

10 years agoshare code for fluidsim, ocean & dynamic paint file paths.
Campbell Barton [Sun, 20 Nov 2011 14:38:11 +0000 (14:38 +0000)]
share code for fluidsim, ocean & dynamic paint file paths.
- use BLI_join_dirfile for joining all paths (no need to ensure slash is appended).
- paths from linked library files now supported.

10 years ago* UI fix for recent Ocean Foam change, makes it a bit more compact.
Thomas Dinges [Sun, 20 Nov 2011 14:36:23 +0000 (14:36 +0000)]
* UI fix for recent Ocean Foam change, makes it a bit more compact.

10 years agoUI: fix issue with part of panels going offscreen after recent commit.
Brecht Van Lommel [Sun, 20 Nov 2011 14:31:01 +0000 (14:31 +0000)]
UI: fix issue with part of panels going offscreen after recent commit.

The code here was tricky, with ED_region_panels trying to match the complex
logic in uiAlignPanelStep, now refactored the code so it's avoided.

10 years agoOption to rename the vertex color data layer used by Ocean modifier for foam. The...
Lukas Toenne [Sun, 20 Nov 2011 14:16:41 +0000 (14:16 +0000)]
Option to rename the vertex color data layer used by Ocean modifier for foam. The modifier outputs foam values to both textures and a (temporary) vertex data layer. This layer was unnamed before, which makes it impossible to access in shader nodes. Now the user can input a custom name in the modifier panel, then use that same name in a shader input node to access foam values.

10 years agoRNA: fix compile issue with zero size arrays with old gcc.
Brecht Van Lommel [Sun, 20 Nov 2011 13:47:15 +0000 (13:47 +0000)]
RNA: fix compile issue with zero size arrays with old gcc.

10 years agoTweaks in convert tracking constraint to f-curves operator.
Sergey Sharybin [Sun, 20 Nov 2011 11:44:32 +0000 (11:44 +0000)]
Tweaks in convert tracking constraint to f-curves operator.

10 years agoFix #29322: 'Active Clip' not saving after appending.
Sergey Sharybin [Sun, 20 Nov 2011 11:34:25 +0000 (11:34 +0000)]
Fix #29322: 'Active Clip' not saving after appending.

Address for active clip used to be updated in direct scene linking,
should be in library linking.

10 years agoDynamic Paint:
Miika Hamalainen [Sun, 20 Nov 2011 10:52:25 +0000 (10:52 +0000)]
Dynamic Paint:
* Vertex color output now works even if there is a constructive modifier, like ocean sim, before dpaint.
* Fixed a crash when canvas mesh had no vertices.
* Fix: Smudge was also processed for incompatible surface types causing corrupted output.

10 years ago- pyapi mathutils.geometry.intersect_plane_plane
Campbell Barton [Sun, 20 Nov 2011 05:56:21 +0000 (05:56 +0000)]
- pyapi mathutils.geometry.intersect_plane_plane
- isect_plane_plane_v3 uses better method
- minor refactor - arg name changes & some args as const.

10 years agoReplace "&" with "and" since on windows it separates the string and causes errors...
Antony Riakiotakis [Sun, 20 Nov 2011 00:37:24 +0000 (00:37 +0000)]
Replace "&" with "and" since on windows it separates the string and causes errors in the console.

10 years agoUI/RNA:
Thomas Dinges [Sun, 20 Nov 2011 00:32:39 +0000 (00:32 +0000)]
* Code cleanup.

10 years agoBugfix for [#29327] background images: 'Not Set' displayed although image is already...
Thomas Dinges [Sat, 19 Nov 2011 23:06:10 +0000 (23:06 +0000)]
Bugfix for [#29327] background images: 'Not Set' displayed although image is already loaded.

10 years agoBugfix for [#29279] Cycles Displacement Panel appears when blender render engine...
Thomas Dinges [Sat, 19 Nov 2011 22:59:48 +0000 (22:59 +0000)]
Bugfix for [#29279] Cycles Displacement Panel appears when blender render engine is choosen.

10 years agoCycles: another build system tweak that might solve build problem, not sure
Brecht Van Lommel [Sat, 19 Nov 2011 22:06:39 +0000 (22:06 +0000)]
Cycles: another build system tweak that might solve build problem, not sure
why this code is giving issues.

10 years agoUI: modify region expand widget from floating (+) icon into a dark tab with
Brecht Van Lommel [Sat, 19 Nov 2011 22:05:18 +0000 (22:05 +0000)]
UI: modify region expand widget from floating (+) icon into a dark tab with
a light + in it.

10 years agoUI:
Brecht Van Lommel [Sat, 19 Nov 2011 20:57:53 +0000 (20:57 +0000)]
* Add theme option to show panel header background.
* Draw panel collapse widget a bit smaller.
* Add theme option to draw icons muted.
* Code tweak: replace U.themes.first by UI_GetTheme() calls.

10 years agoFixing compile breakage (was missing an #include "BKE_camera.h" in UVProject modifier...
Bastien Montagne [Sat, 19 Nov 2011 20:40:46 +0000 (20:40 +0000)]
Fixing compile breakage (was missing an #include "BKE_camera.h" in UVProject modifier code file…).

10 years agoCamera tracking fixes:
Sergey Sharybin [Sat, 19 Nov 2011 20:14:57 +0000 (20:14 +0000)]
Camera tracking fixes:
- Fixed incorrect memory access on distoritons more than 128 pixels
- Do not use UNDO operators flags for delete proxy operator (files can't be restored form disk),
  and also do not use UNDO for set as background operator (background images are storing in
  3d viewport which isn't getting re-loaded on undo which can lead to incorrect users count
  of movie clip user).

10 years agoCamera: some more refactoring, mostly in the function that computes the camera
Brecht Van Lommel [Sat, 19 Nov 2011 18:35:42 +0000 (18:35 +0000)]
Camera: some more refactoring, mostly in the function that computes the camera
border, now we just get the border coordinates from comparing the viewport and
camera viewplanes.

10 years agohide overly picky warnings from 'pylint' for pep8 script, indentation edits.
Campbell Barton [Sat, 19 Nov 2011 16:17:35 +0000 (16:17 +0000)]
hide overly picky warnings from 'pylint' for pep8 script, indentation edits.

10 years agoMore UI messages fixes and tweaks (found while translating in french).
Bastien Montagne [Sat, 19 Nov 2011 12:21:15 +0000 (12:21 +0000)]
More UI messages fixes and tweaks (found while translating in french).

10 years ago- rename MovieTrackingMarker.enabled --> mute, to match constraints/nla/fcurves/sequencer
Campbell Barton [Sat, 19 Nov 2011 02:48:09 +0000 (02:48 +0000)]
- rename MovieTrackingMarker.enabled --> mute, to match constraints/nla/fcurves/sequencer
- report an error if an invalid BGpic arg is given to v3d.background_images.remove()

10 years agoadd poll function for VIEW3D_OT_camera_to_view_selected & remove some unused code.
Campbell Barton [Sat, 19 Nov 2011 01:24:40 +0000 (01:24 +0000)]
add poll function for VIEW3D_OT_camera_to_view_selected & remove some unused code.

also made it so copying camera sets the dof object to extern.

10 years agoreplace fabs with fabsf where both input and output are floats.
Campbell Barton [Sat, 19 Nov 2011 01:10:05 +0000 (01:10 +0000)]
replace fabs with fabsf where both input and output are floats.

10 years agomake it clearer which arguments in transform snap are return values (no functional...
Campbell Barton [Sat, 19 Nov 2011 00:52:54 +0000 (00:52 +0000)]
make it clearer which arguments in transform snap are return values (no functional change)

10 years agoadd python3 checks to avoid confusion from errors with python2.
Campbell Barton [Sat, 19 Nov 2011 00:01:10 +0000 (00:01 +0000)]
add python3 checks to avoid confusion from errors with python2.

10 years agoCamera: some more code deduplication.
Brecht Van Lommel [Fri, 18 Nov 2011 23:32:17 +0000 (23:32 +0000)]
Camera: some more code deduplication.

10 years agoUI: fix issue with previous commit, could show wrong tooltip.
Brecht Van Lommel [Fri, 18 Nov 2011 23:32:00 +0000 (23:32 +0000)]
UI: fix issue with previous commit, could show wrong tooltip.

10 years agoCamera Sensor:
Brecht Van Lommel [Fri, 18 Nov 2011 23:15:11 +0000 (23:15 +0000)]
Camera Sensor:
* Tweak description of sensor fit property.
* Fix sensor display for auto and vertical fit.
* Fix incorrect aspect ratio for camera frame drawing.

10 years agoFix [#29018] Problem with multi-column dorpdown lists, when scrolling is enabled...
Bastien Montagne [Fri, 18 Nov 2011 23:10:56 +0000 (23:10 +0000)]
Fix [#29018] Problem with multi-column dorpdown lists, when scrolling is enabled: the bottom-most elements are not shown.

ui_popup_block_scrolltest needs to be aware whether uiblock is flip or not, to avoid hiding irrelevant items in multi-column scrolled menus...

10 years agoCamera: more code refactoring, adding a function to create CameraParams from
Brecht Van Lommel [Fri, 18 Nov 2011 21:19:03 +0000 (21:19 +0000)]
Camera: more code refactoring, adding a function to create CameraParams from
3d view, deduplicating the complex code for setting up the viewplane.

10 years agoUI: small tweak to tooltips for enum menus, it wasn't very clear which
Brecht Van Lommel [Fri, 18 Nov 2011 21:06:36 +0000 (21:06 +0000)]
UI: small tweak to tooltips for enum menus, it wasn't very clear which
description was for the property and which for the item.

10 years agoFix #29321: Video does not display, gets frozen or flickers
Sergey Sharybin [Fri, 18 Nov 2011 20:55:06 +0000 (20:55 +0000)]
Fix #29321: Video does not display, gets frozen or flickers

Unfortunately, error was caused by own attempt to deal with some kind of broken
videos when was investigating crashes in sequencer. Issue discovered that time
was related on values stored in timecode index and using them as signed data type

Trying to use unsigned value here leads to signed/unsigned check failures.

Prefer just to pre-process that kind of videos i've been trying to deal with
rather than making more global changes during BCON3.

10 years agoUpdated stubs so blenderplayer is compiling again.
Sergey Sharybin [Fri, 18 Nov 2011 16:49:03 +0000 (16:49 +0000)]
Updated stubs so blenderplayer is compiling again.

10 years agoCamera: some code refactoring, use an intermediate CameraParams struct instead
Brecht Van Lommel [Fri, 18 Nov 2011 15:52:00 +0000 (15:52 +0000)]
Camera: some code refactoring, use an intermediate CameraParams struct instead
of long list of variables everywhere. Intention is to also let 3d view use this
eventually, instead of duplicating code.

10 years agoCycles: try to avoid NaN pixels with oren nayar. Also small cmake code cleanup.
Brecht Van Lommel [Fri, 18 Nov 2011 15:39:40 +0000 (15:39 +0000)]
Cycles: try to avoid NaN pixels with oren nayar. Also small cmake code cleanup.

10 years agoRe-commit reverted changes from rev41394. was accidentally
Sergey Sharybin [Fri, 18 Nov 2011 15:29:40 +0000 (15:29 +0000)]
Re-commit reverted changes from rev41394. was accidentally
reverted when trunk was prepared for tomato merge.

10 years agoCamera tracking: multiply all camera matrices by inverted first reconstructed camera...
Sergey Sharybin [Fri, 18 Nov 2011 14:42:18 +0000 (14:42 +0000)]
Camera tracking: multiply all camera matrices by inverted first reconstructed camera matrix

This makes blender camera:
- Be located on exactly the same position at first frame after applying
  Camera Solver constraint
- Be looking in exactly the same direction it used to look before
  applying Camera Solver constraint

Before this patch in most of cases camera used to change direction
after applying solved data on it which can be confusing in some cases.

Currently solved files wouldn't be broken, but after solve scene should
be re-oriented. Not big deal because re-solving isn't so safe for scene
orientation anyway.

10 years agoRename bgpic.add() to to correspond others collections like
Sergey Sharybin [Fri, 18 Nov 2011 14:28:45 +0000 (14:28 +0000)]
Rename bgpic.add() to to correspond others collections like
render layers, vertices groups and so.
Also added bgpig.remove() function to remove specified picture.

10 years agomake RNA_def_float_rotation usable for single value rotations (not arrays).
Campbell Barton [Fri, 18 Nov 2011 09:23:55 +0000 (09:23 +0000)]
make RNA_def_float_rotation usable for single value rotations (not arrays).

10 years agoMoving spanish code from es_ES to es for now (as the best spanish translation is...
Bastien Montagne [Fri, 18 Nov 2011 09:16:29 +0000 (09:16 +0000)]
Moving spanish code from es_ES to es for now (as the best spanish translation is es.po...).

Else, gettext first search into es_ES (and es_MX it seems???), before using content from es, which currently is not good.

10 years agoSet floor fails to make camera be in positive Z half-space if it was parented to...
Sergey Sharybin [Fri, 18 Nov 2011 08:48:33 +0000 (08:48 +0000)]
Set floor fails to make camera be in positive Z half-space if it was parented to other object.

10 years agoedits to 41957, main changes to render layer removal.
Campbell Barton [Fri, 18 Nov 2011 08:42:44 +0000 (08:42 +0000)]
edits to 41957, main changes to render layer removal.
- report an error if the layer can't be removed
- check the render layer is in the list before removing

10 years agoAdded methods new and remove to scene.render.layers, so now render layers
Sergey Sharybin [Fri, 18 Nov 2011 07:11:54 +0000 (07:11 +0000)]
Added methods new and remove to scene.render.layers, so now render layers
can be created and removed from scripts.

10 years agoexclude addons_contrib for release builds for scons/osx too
Campbell Barton [Fri, 18 Nov 2011 05:14:13 +0000 (05:14 +0000)]
exclude addons_contrib for release builds for scons/osx too

10 years agotab -> spaces
Campbell Barton [Fri, 18 Nov 2011 04:55:43 +0000 (04:55 +0000)]
tab -> spaces

10 years agodocument py gotchas
Campbell Barton [Fri, 18 Nov 2011 04:48:27 +0000 (04:48 +0000)]
document py gotchas
- dont assume you get the data names you ask for
- beware of collisions with library names
- beware of py modules calling sys.exit

10 years agoaddons in contrib now have their own 'Testing' category which is off by default.
Campbell Barton [Thu, 17 Nov 2011 20:11:20 +0000 (20:11 +0000)]
addons in contrib now have their own 'Testing' category which is off by default.

10 years agoexclude addons_contrib/ for release builds.
Campbell Barton [Thu, 17 Nov 2011 19:43:59 +0000 (19:43 +0000)]
exclude addons_contrib/ for release builds.

10 years agoTweaks and fixes to UI messages, found while translating in french.
Bastien Montagne [Thu, 17 Nov 2011 19:26:50 +0000 (19:26 +0000)]
Tweaks and fixes to UI messages, found while translating in french.

10 years agoadd flag FUNC_USE_MAIN for rna functions which don't need the context. (currently...
Campbell Barton [Thu, 17 Nov 2011 18:41:37 +0000 (18:41 +0000)]
add flag FUNC_USE_MAIN for rna functions which don't need the context. (currently unused)

10 years agocentralize some of the came install commands, were being copied between osx/win/linux
Campbell Barton [Thu, 17 Nov 2011 18:23:34 +0000 (18:23 +0000)]
centralize some of the came install commands, were being copied between osx/win/linux

10 years agopyapi feature from 2.4x
Campbell Barton [Thu, 17 Nov 2011 08:47:34 +0000 (08:47 +0000)]
pyapi feature from 2.4x

allow collection subscript to contain the library or None.

eg:["Mesh", "/subsurf_test.blend"]["Scene", None]

  # also works with get()"some_armature", "//some_lib.blend"), None)

10 years agoFixed comment in BLI_dlrbTree_search_exact
Konrad Kleine [Thu, 17 Nov 2011 08:02:36 +0000 (08:02 +0000)]
Fixed comment in BLI_dlrbTree_search_exact

10 years agopydrivers: 'frame' is now in the driver namespace,
Campbell Barton [Thu, 17 Nov 2011 07:08:09 +0000 (07:08 +0000)]
pydrivers: 'frame' is now in the driver namespace,

- no need to link to scenes when using a frame from the pydriver, this made linking rigs for eg, quite messy.
- advantage that we get subframe values (where scenes from was fixed to a whole number).

10 years agopass encoding to uses of decode() incase the default isnt utf-8. ignore decode errors...
Campbell Barton [Thu, 17 Nov 2011 04:05:54 +0000 (04:05 +0000)]
pass encoding to uses of decode() incase the default isnt utf-8. ignore decode errors in some cases.

This should fix an error with generated qtcreator projects.

also replace decoded bytes for unicode escape sequences in the VIEW3D_MT_edit_text_chars menu.

10 years agoBLI_mempool redefined causing compile time error, removing duplicate typedef
Antony Riakiotakis [Wed, 16 Nov 2011 22:20:17 +0000 (22:20 +0000)]
BLI_mempool redefined causing compile time error, removing duplicate typedef

10 years agoUI: editor splitting widgets in corners now draw antialiased, also fix 1 pixel
Brecht Van Lommel [Wed, 16 Nov 2011 20:36:06 +0000 (20:36 +0000)]
UI: editor splitting widgets in corners now draw antialiased, also fix 1 pixel
inconsistency between bottom-left and top-right.