blender.git
8 years agoMerging r38339 through r38342 from trunk into soc-2011-tomato
Sergey Sharybin [Tue, 12 Jul 2011 18:57:30 +0000 (18:57 +0000)]
Merging r38339 through r38342 from trunk into soc-2011-tomato

8 years agoFix for recent GHOST SDL commit.
Sergey Sharybin [Tue, 12 Jul 2011 18:39:46 +0000 (18:39 +0000)]
Fix for recent GHOST SDL commit.
SCons rules haven't been changed to deal with new option.

8 years agoMerging r38316 through r38338 from trunk into into soc-2011-tomato
Sergey Sharybin [Tue, 12 Jul 2011 18:06:16 +0000 (18:06 +0000)]
Merging r38316 through r38338 from trunk into into soc-2011-tomato

8 years agoCamera tracking integration
Sergey Sharybin [Tue, 12 Jul 2011 18:04:29 +0000 (18:04 +0000)]
Camera tracking integration
===========================

- Fixed typo in RNA api for has_bundle.
- Added operator "Bundles To Mesh".
  It was a request from Sebastian and this operator creates mesh
  with vertices using bundles coords for vertices coordinates.
  A bit limited atm -- new object can't be parented to camera,
  so changing camera orientation would requite mesh re-creation.

8 years agoCamera tracking integration
Sergey Sharybin [Tue, 12 Jul 2011 13:35:25 +0000 (13:35 +0000)]
Camera tracking integration
===========================

- Fixed buf with under reference for Follow Track constraint.
- Get rid of BKE_movieclip_approx_size. Rather than accessing
  to cache with previously set frame number it'll be easier to
  store size of last accessed in "runtime" DNA.

8 years agobuild option to use SDL 1.3 for GHOST rather then X11/Win32/Cocoa api's,
Campbell Barton [Tue, 12 Jul 2011 13:17:54 +0000 (13:17 +0000)]
build option to use SDL 1.3 for GHOST rather then X11/Win32/Cocoa api's,
This opens up the option for blender to be more easily ported to other devices, OS's.

TODO
- continuous grab.
- text glitch with multiple windows (was a bug in X11 too for a while, will check on this)

8 years agocorrection to cursor enum and make GHOST_SystemX11's convertXKey into a static function.
Campbell Barton [Tue, 12 Jul 2011 12:53:23 +0000 (12:53 +0000)]
correction to cursor enum and make GHOST_SystemX11's convertXKey into a static function.

8 years agoCamera tracking integration
Sergey Sharybin [Tue, 12 Jul 2011 11:46:46 +0000 (11:46 +0000)]
Camera tracking integration
===========================

- Reduced size of widget for camera focal length units.
  Also changed labels to mm/px. Now it's much easier to read
  values and titles here.
- Reordered settings in "Display" panel. Hopefully it's
  now easier to read options here even when N-panel
  isn't large enough.
- Fixed bug with "disappearing" labels from "Active marker" panel.
- If search areas are hidden and marker is disabled,
  make pattern area red rather than displaying nothing for
  this marker.
- Internal change: "show marker path" became "show track path".
- Lock shape of pattern to square by default. Control unlocks
  this shape.
- Hitting escape when sliding cancels changes and stops sliding.
- Search areas are hidden by default now. No big benefit of
  looking at them now after changing default settings to
  2D tracker and pattern/search size.
- Both of Toolshelf and Properties panels are now visible
  by default.
- Move keyframes from Properties panel to Toolshelf.
  It is a key thing which makes reconstruction correct and
  this options were too hidden and not so convenient to
  use.

8 years agoRNA: fix some text datablock property UI names.
Brecht Van Lommel [Tue, 12 Jul 2011 09:30:40 +0000 (09:30 +0000)]
RNA: fix some text datablock property UI names.

8 years agoCamera tracking integration
Sergey Sharybin [Tue, 12 Jul 2011 08:43:21 +0000 (08:43 +0000)]
Camera tracking integration
===========================

This should been never gone outside of my local working tree.

8 years agoMerging r38296 through r38315 from trunk into soc-2011-tomato
Sergey Sharybin [Mon, 11 Jul 2011 18:18:42 +0000 (18:18 +0000)]
Merging r38296 through r38315 from trunk into soc-2011-tomato

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 11 Jul 2011 18:16:02 +0000 (18:16 +0000)]
Camera tracking integration
===========================

Forgot to add colamd to cmake rules for blenderplayer.
Because of starnge reason it should be added to list after libmv.

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 11 Jul 2011 17:13:27 +0000 (17:13 +0000)]
Camera tracking integration
===========================

- Fixed incorrect usage of RNA structure for
  CameraSolverConstraint.
- Fixed some typos in object_constraint which were
  casting CameraSolver data to FollowTrack data.
- Tracking-related constraints now have got option
  "Use Defult Clip" which makes them use clip set as
  active for scene. Enabled by default.
- Set active blender camera focal length after reconstruction.
- Corrected offset of sequence images. Now first image from sequence
  should be at scene frame 1.

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 11 Jul 2011 12:38:44 +0000 (12:38 +0000)]
Camera tracking integration
===========================

- Minor spelling fixes.
- Do not draw bundles for hidden tracks in SpaceClip.
- Pressing SHift when sliding marker with mouse makes movenment more accurate.
- New default values for maerker pattern/search areas.
  This makes tracking more stable.
- Pyramid level increased to 4. This would make tracking
  of blured imaged more accurate.

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 11 Jul 2011 11:17:39 +0000 (11:17 +0000)]
Camera tracking integration
===========================

Forgot to write Focal Length SET function :)

8 years agoFix #27928: avi raw writing failure, after earlier bugfix for big file sizes.
Brecht Van Lommel [Mon, 11 Jul 2011 09:47:13 +0000 (09:47 +0000)]
Fix #27928: avi raw writing failure, after earlier bugfix for big file sizes.

8 years agoFix #27930: many modifiers crashed when used on a lattice with a vertex group.
Brecht Van Lommel [Mon, 11 Jul 2011 09:15:20 +0000 (09:15 +0000)]
Fix #27930: many modifiers crashed when used on a lattice with a vertex group.

8 years agoFix #27912: crash after mesh.materials.pop().
Brecht Van Lommel [Mon, 11 Jul 2011 09:08:08 +0000 (09:08 +0000)]
Fix #27912: crash after mesh.materials.pop().

8 years agoFix #27921: optimal display with 2 subsurf modifiers fails.
Brecht Van Lommel [Mon, 11 Jul 2011 09:05:10 +0000 (09:05 +0000)]
Fix #27921: optimal display with 2 subsurf modifiers fails.

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 11 Jul 2011 09:04:00 +0000 (09:04 +0000)]
Camera tracking integration
===========================

- Changed libmv api to use doubles instead of floats.
  No real benefit rather than keeping API uniform.
- Optimized reconstructed camera search. It's optimized for
  playback, not random access.
- Added option to show projection of bundles into footage.
  To see bundles "Show Bundles" from Display panel should
  be enabled. Used very rough limit of 3 px to consider projection
  is fine. Colors are still hard-coded. Not sure it could be useful
  to make them configurable.
- Added option to mute footage. It could be useful to check
  if markers/bundles are moving smoothly.
- Added selector for focal length units.

8 years agoMerging r38265 through r38295 from trunk into soc-2011-tomato
Sergey Sharybin [Mon, 11 Jul 2011 08:43:34 +0000 (08:43 +0000)]
Merging r38265 through r38295 from trunk into soc-2011-tomato

8 years agomake python3.3 compatible, __class__ is no longer in the class methods namespace.
Campbell Barton [Mon, 11 Jul 2011 05:50:49 +0000 (05:50 +0000)]
make python3.3 compatible, __class__ is no longer in the class methods namespace.

8 years agoFix for [#27398] Particle systems with animated groups render incorrectly in viewport
Janne Karhu [Sun, 10 Jul 2011 23:49:59 +0000 (23:49 +0000)]
Fix for [#27398] Particle systems with animated groups render incorrectly in viewport
* Hmph.. depsgraph and group duplication == illogical.

8 years agoFix for [#27293] Group Instance of particle system is rendered wrong
Janne Karhu [Sun, 10 Jul 2011 23:24:15 +0000 (23:24 +0000)]
Fix for [#27293] Group Instance of particle system is rendered wrong
* Silly mul_m4_v3 had turned into a mul_m4_v4 at some point!

8 years ago-OpenEXR fixed so enabling if user has enabled
Antony Riakiotakis [Sun, 10 Jul 2011 20:04:56 +0000 (20:04 +0000)]
-OpenEXR fixed so enabling if user has enabled
-Added Iex to lib list, was causing link time errors

8 years agorun WM_exit(C) when blender as a python module exits
Campbell Barton [Sun, 10 Jul 2011 18:54:02 +0000 (18:54 +0000)]
run WM_exit(C) when blender as a python module exits

8 years agoFix #27926: autokey not working with auto IK, broke this with an earlier bugfix.
Brecht Van Lommel [Sun, 10 Jul 2011 18:21:40 +0000 (18:21 +0000)]
Fix #27926: autokey not working with auto IK, broke this with an earlier bugfix.

8 years agoCamera tracking integration
Sergey Sharybin [Sun, 10 Jul 2011 18:12:29 +0000 (18:12 +0000)]
Camera tracking integration
===========================

- Fixed sub-pixel precision error when sliding markers.
- Made sliding areas smaller.
- Remove "Debug" menu,
- pep8 cleanup.

8 years agoFix for [#27289] Hair: Render Option - Object does not point objects to end of "hair...
Janne Karhu [Sun, 10 Jul 2011 17:30:31 +0000 (17:30 +0000)]
Fix for [#27289] Hair: Render Option - Object does not point objects to end of "hair path"
* Objects are now always rotated in the directions of the hair paths
* Secondary fix: particle size wasn't updated for hair particles, so dupliobject size couldn't be change after the hair was edited

8 years agofix for various python bugs and remove unused var.
Campbell Barton [Sun, 10 Jul 2011 17:26:15 +0000 (17:26 +0000)]
fix for various python bugs and remove unused var.

8 years agoFix for [#26873] Animated displacement modifier on an object doesn't work with hair...
Janne Karhu [Sun, 10 Jul 2011 17:04:56 +0000 (17:04 +0000)]
Fix for [#26873] Animated displacement modifier on an object doesn't work with hair particle objects
* Noise is now considered an animated texture as it changes with every frame
* Converted a few places in particles code to use the particle system's own random table instead of BLI_frand.

8 years agocleanup for python scripts - unused vars and imports
Campbell Barton [Sun, 10 Jul 2011 12:51:37 +0000 (12:51 +0000)]
cleanup for python scripts - unused vars and imports

8 years agoCamera tracking integration
Sergey Sharybin [Sat, 9 Jul 2011 20:38:41 +0000 (20:38 +0000)]
Camera tracking integration
===========================

- Added option to keep area equal width and height
  when sliding it by mouse. Use "Control" button for this.
- Do now show sliding zones for disabled markers.

8 years agofix for NULL pointer usages
Campbell Barton [Sat, 9 Jul 2011 19:59:32 +0000 (19:59 +0000)]
fix for NULL pointer usages

8 years agoCamera tracking integration
Sergey Sharybin [Sat, 9 Jul 2011 19:57:29 +0000 (19:57 +0000)]
Camera tracking integration
===========================

Clean-up: animation data is not necessery in MovieClip. Removing.

It'll be easy to add it back just reverting this commit.

8 years agoCamera tracking integration
Sergey Sharybin [Sat, 9 Jul 2011 19:51:23 +0000 (19:51 +0000)]
Camera tracking integration
===========================

- Implemented hide/show track functionality.
- Small re-exposing Marker menu into UI.
  Now it's called "Track". Added new operators there.
- Set reconstructed clip as active to scene.

8 years agofix for using uninitialized value in gpu_shader_material
Campbell Barton [Sat, 9 Jul 2011 19:16:32 +0000 (19:16 +0000)]
fix for using uninitialized value in gpu_shader_material

8 years agoCamera tracking integration
Sergey Sharybin [Sat, 9 Jul 2011 17:51:59 +0000 (17:51 +0000)]
Camera tracking integration
===========================

Improved marker size/position adjustment:
- Rollback selection model so selected parts of marker
  would be disabled only when "extension" click happens.
- Implemented left mouse sliding to adjust marker position
  (using small square in left top corner of search area) and
  size of pattern/search (using small triangle it right bottom
  corner of marker)

8 years agoMerging r38237 through r38264 from trunk into soc-2011-tomato
Sergey Sharybin [Sat, 9 Jul 2011 17:49:36 +0000 (17:49 +0000)]
Merging r38237 through r38264 from trunk into soc-2011-tomato

8 years agofix [#27683] Blender hangs when baking a particle system when a driver is present
Campbell Barton [Sat, 9 Jul 2011 17:41:39 +0000 (17:41 +0000)]
fix [#27683] Blender hangs when baking a particle system when a driver is present

8 years agoWrong tooltip for OBJECT_OT_make_links_scene() operator.
Ton Roosendaal [Sat, 9 Jul 2011 17:09:28 +0000 (17:09 +0000)]
Wrong tooltip for OBJECT_OT_make_links_scene() operator.

8 years agoBugfix #27761
Ton Roosendaal [Sat, 9 Jul 2011 17:03:35 +0000 (17:03 +0000)]
Bugfix #27761

Material nodes: when no output node was active, it sets one.
Not common to happen anymore, only for deleting output nodes
without clicking on nodes.

8 years agoghost multi-test builds again, now uses BLF font library
Campbell Barton [Sat, 9 Jul 2011 16:18:15 +0000 (16:18 +0000)]
ghost multi-test builds again, now uses BLF font library

8 years agoFix #27888: Render artifacts in 2.58.1
Sergey Sharybin [Sat, 9 Jul 2011 15:10:12 +0000 (15:10 +0000)]
Fix #27888: Render artifacts in 2.58.1

It was a regression introduced in rev36301. Average normal calcilation
used to fail due to triangular faces which are too slight.

Do not use triangles with too small area for average normal calculation.

8 years agofix [#27915] Relax Pose crashes blender on bone with ChildOf constraint in linked rig
Campbell Barton [Sat, 9 Jul 2011 14:33:28 +0000 (14:33 +0000)]
fix [#27915] Relax Pose crashes blender on bone with ChildOf constraint in linked rig

8 years agoFox #27866: Curve handle snaps/locks when it shouldnt
Sergey Sharybin [Sat, 9 Jul 2011 14:22:52 +0000 (14:22 +0000)]
Fox #27866: Curve handle snaps/locks when it shouldnt

It was a precision error in calchandleNurb. Do not align handles
along handle which si too short.

8 years ago== GPU Buffers ==
Nicholas Bishop [Fri, 8 Jul 2011 19:58:02 +0000 (19:58 +0000)]
== GPU Buffers ==

This patch attempts to clean up and document the GPU buffers
code. There are a few bug fixes as well.

Patch reviewed here: http://codereview.appspot.com/4631052/

Summary:

* Bugfix: make GPU_buffer_copy_normal convert from shorts to floats
  correctly, also fixed the use of cached face normal CustomData.

* Bugfix: changed the `mat_nr' field of GPUBufferMaterial from char to
  short.

* Changed color buffer setup to not alloc a temporary copy of color
  data, just passes the MCol data in directly.

* Changed the GPU buffer pool code to make clearer what operates
  specifically on the global pool.

* Lots of refactoring for GPU_drawobject_new; should operate mostly
  the same (except got rid of one unecessary allocation), just split
  into more functions and without macros now.

* Converted some #defines into enumerations.

* Made some stuff private, pulled out of header file.

* Deleted unused function GPU_buffer_pool_free_unused().

* Removed GPU_interleaved_setup and related #defines. (I think this
  was used for editmode VBOs, but those were disabled.)

* Added lots of comments.

* Added a few comments in the code signed `--nicholas' to note places
  where I am unsure about design or usage, would be good to address
  these better.

* Code formatting changed to be more consistent with the rest of
  Blender.

* Renamed some fields and variables to be more consistent with
  Blender's naming conventions.

* Renamed some fields and variables to use more descriptive names,
  e.g. renamed `redir' to `mat_orig_to_new'.

* Removed print outs with DEBUG_VBO -- don't feel too strongly about
  this one, just not used elsewhere in Blender, could be easily added
  back if others disagree though.

* Moved the PBVH drawing code down to the bottom of the file, before
  was sitting in the middle of the other VBO code

8 years agoCamera tracking integration
Sergey Sharybin [Fri, 8 Jul 2011 17:42:13 +0000 (17:42 +0000)]
Camera tracking integration
===========================

- Made settings for tracking non-animatable.
- Fixed crash when enabling/disabling markers from
  "Specials" menu.
- Translate all coords to make first reconstructed camera
  be at position (0,0,0).
- Blender's camera now affects on reconstructed data.
  Bundles are "parented" to active scene camera. So now
  bundles' could could be scaled and rotated when camera
  is rotating/scaling.

8 years agoMerging r38220 through r38236 from trunk into soc-2011-tomato
Sergey Sharybin [Fri, 8 Jul 2011 17:40:29 +0000 (17:40 +0000)]
Merging r38220 through r38236 from trunk into soc-2011-tomato

8 years agoFix #27897: mesh with negative scale disappears while sculpting, clipping
Brecht Van Lommel [Fri, 8 Jul 2011 15:58:00 +0000 (15:58 +0000)]
Fix #27897: mesh with negative scale disappears while sculpting, clipping
planes were wrong in that case.

8 years agoFix #26962: softbody collision doesn't respect subsurf+displace modifiers.
Brecht Van Lommel [Fri, 8 Jul 2011 13:22:58 +0000 (13:22 +0000)]
Fix #26962: softbody collision doesn't respect subsurf+displace modifiers.

Softbody was still using a flag to determine if it should use the final or
deform derivedmesh, but this wans't exposed in the UI. Others systems use the
collision modifier, now softbody uses it also to get vertices and faces, but
with own collision code.

8 years agoFix #27900: file browser filter, sort, .. parameters were not saved. This is
Brecht Van Lommel [Fri, 8 Jul 2011 12:22:48 +0000 (12:22 +0000)]
Fix #27900: file browser filter, sort, .. parameters were not saved. This is
useful if you have a screen setup with a file browser editor.

8 years agoFix #27891: IK stretch gives inaccurate results. Tweaked translation segment
Brecht Van Lommel [Fri, 8 Jul 2011 12:18:54 +0000 (12:18 +0000)]
Fix #27891: IK stretch gives inaccurate results. Tweaked translation segment
convergence weight a bit to match angles better at typical scales.

8 years agoFix #27902: autokey bones with individual origins transform not working.
Brecht Van Lommel [Fri, 8 Jul 2011 11:43:35 +0000 (11:43 +0000)]
Fix #27902: autokey bones with individual origins transform not working.

8 years agoCamera tracking integration
Sergey Sharybin [Fri, 8 Jul 2011 08:38:54 +0000 (08:38 +0000)]
Camera tracking integration
===========================

- 32 bit linux compilation should be fixed now.
- Camrea reconstruction data should be better now
  when there's no reconstructed cameras.
- Implemented "Set Origin" operator
- Added "Specials" W-key menu for SpaceClip.
  Supports such operators:
  * Enable track
  * Disable track
  * Set origin

8 years agoMerging r38197 through r38219 from trunk into soc-2011-tomato
Sergey Sharybin [Fri, 8 Jul 2011 08:36:51 +0000 (08:36 +0000)]
Merging r38197 through r38219 from trunk into soc-2011-tomato

8 years agoexample of Physics Constraints module :)
Dalai Felinto [Fri, 8 Jul 2011 06:51:12 +0000 (06:51 +0000)]
example of Physics Constraints module :)
+ some small fixes in other docs.

A topic for later(soon?), I think we should name the modules according to the rest of Blender modules. So instead of:
Game Engine bge.logic Module

We would have it:
Game Logic (bge.logic)
...

8 years agofix issue raised by [#27819] Unwrap Menu (U) -> Lightmap Pack throws Python Exception...
Campbell Barton [Fri, 8 Jul 2011 03:07:51 +0000 (03:07 +0000)]
fix issue raised by [#27819] Unwrap Menu (U) -> Lightmap Pack throws Python Exception.   But use a different fix.

8 years agopatch [#27885] bge.constraints documentation
Campbell Barton [Fri, 8 Jul 2011 02:59:25 +0000 (02:59 +0000)]
patch [#27885] bge.constraints documentation
by Solano Felicio (solano)

8 years agofix for example
Campbell Barton [Thu, 7 Jul 2011 21:14:36 +0000 (21:14 +0000)]
fix for example

8 years agobge.texture doc, needed whitespace to format correctly.
Campbell Barton [Thu, 7 Jul 2011 19:35:55 +0000 (19:35 +0000)]
bge.texture doc, needed whitespace to format correctly.

8 years agoCamera tracking integration
Sergey Sharybin [Thu, 7 Jul 2011 19:27:14 +0000 (19:27 +0000)]
Camera tracking integration
===========================

- Disallow negative size for bundles.
- Fixed bug with passing disabled markers to solver.

8 years agosome corrections to bge.texture docs
Campbell Barton [Thu, 7 Jul 2011 19:23:51 +0000 (19:23 +0000)]
some corrections to bge.texture docs

8 years agoCamera tracking integration
Sergey Sharybin [Thu, 7 Jul 2011 17:58:33 +0000 (17:58 +0000)]
Camera tracking integration
===========================

- ColaMD moved from OpenNL to extern/.
  It'll be needed for libmv. Also, it's a bit updated from
  year 1999 to 2007.
  Need to be tested for regressions.
- Updated bundling script for libmv. Now it uses fuller
  subset of this library.
- Bundled new libmv.
- Request from Keir: add command line argument to toggle logging
  stuff on. Currently, if Blender is launched with -d argument
  libmv would start printing logging messages. There's no
  argument to increase verbosity, but there's API in libmv-capi,
  so it'll be easy to add.
- Finally fixed crash when ibuf is acquiring with user=NULL.
- Added ActiveClip property to the scene. This clip is used
  as default value for new match-moving constraints.
- Added some flags to Display panel of View3D. Related on
  displaying match-moving stuff.
- Internal change: bundles data moved inside to MovieTrackingTrack.
- Initial implementation of 3d reconstruction.
- Added constraint "Camera Solver". This constraint is supposed
  to be used to make camera follow the reconstructed camera path.
- Added "reference" property to "Follow Track" constraint.
  Now object could be "parented" to 2D track position or to
  3D bundle position.

The very quick guide:

To use reconstruction you should have footage with tracked markers,
choose two keyframes in "Tracking settings" panel. There should be
quite noticeable parallax effect between this two frames. This
is used to initialize reconstruction stuff.
Camera data (focal length and optical center) should be filled in
"Camera Data" panel. Optical center is often the center of image,
so it'll be filled in automatically.
You should also set values for undistortion (K1, K2 and K3). Currently,
there's no any visualization for this parameters and approach of
"change value -> reconstruct -> see what've changed" is the only way
for now.
Libmv team is working on auto-calibration tool, so it should be
easier to gather this coefficients in nearest (i hope) future.
There's also no scene orientation stuff.

Basic workflow:
- Open footage.
- Set markers and track them.
- Fill in camera data and keyframes.
- Hit "Solve Camera" button.
- Add "Camera Solver" constraint to camera in scene.
- Choose movieclip in that constraint.
- To see bundles in 3D viewport active clip should be set
  in scene buttons.

8 years agoMerging r38036 through r38196 from trunk into soc-2011-tomato
Sergey Sharybin [Thu, 7 Jul 2011 17:48:22 +0000 (17:48 +0000)]
Merging r38036 through r38196 from trunk into soc-2011-tomato

8 years agoAllow pose matrix to be set for Benjy Cook's GSOC project.
Campbell Barton [Thu, 7 Jul 2011 16:09:57 +0000 (16:09 +0000)]
Allow pose matrix to be set for Benjy Cook's GSOC project.
this uses the same function as pose mode snapping.

8 years agoFix compile with scons, after thread commit in r38185
Nathan Letwory [Thu, 7 Jul 2011 13:57:20 +0000 (13:57 +0000)]
Fix compile with scons, after thread commit in r38185

8 years agoFix part of #26811: absolute shape keys should not show influence value in list.
Brecht Van Lommel [Thu, 7 Jul 2011 11:01:36 +0000 (11:01 +0000)]
Fix part of #26811: absolute shape keys should not show influence value in list.

8 years agoThe Blenderplayer wasn't freeing GPU_Textures since according to BLI_threads, GPU_fre...
Mitchell Stokes [Thu, 7 Jul 2011 10:37:46 +0000 (10:37 +0000)]
The Blenderplayer wasn't freeing GPU_Textures since according to BLI_threads, GPU_free_image() was never being called from the main thread. Calling BLI_threadapi_init() when the Blenderplayer starts sets the current thread as the main thread and solves the problem.

8 years agoTiny tweak: hierarchy lines in outliner were nearly invisible. Color is
Ton Roosendaal [Thu, 7 Jul 2011 09:56:06 +0000 (09:56 +0000)]
Tiny tweak: hierarchy lines in outliner were nearly invisible. Color is
blend between backdrop and text color (black), made it blend 0.4 instead
of 0.2

8 years ago[#27854] Collada import doesn't handle UVW mapping
Nathan Letwory [Wed, 6 Jul 2011 21:37:31 +0000 (21:37 +0000)]
[#27854] Collada import doesn't handle UVW mapping
Reported by David Roy
Patch by Brecht van Lommel

UV import code wasn't taking possible stride into account (always assuming stride==2), thus reading UV coords totally wrong.

8 years agoThe material index did not work when FSAA was turned on.
Jeroen Bakker [Wed, 6 Jul 2011 16:08:24 +0000 (16:08 +0000)]
The material index did not work when FSAA was turned on.
The information was written in the temp exr files, but was not read back.
After checking I saw that the pass was not merged back in the rendercore.

After adding this it worked. tested with all FSAA settings.

8 years agoFix #27879: sequencer didn't draw overlapping strips well, selected were drawn
Brecht Van Lommel [Wed, 6 Jul 2011 13:15:22 +0000 (13:15 +0000)]
Fix #27879: sequencer didn't draw overlapping strips well, selected were drawn
under unselected, and active strips red border color for active strips was not
clear enough.

8 years agoFix #27883: object actions did not get duplicated on full scene copy.
Brecht Van Lommel [Wed, 6 Jul 2011 12:33:33 +0000 (12:33 +0000)]
Fix #27883: object actions did not get duplicated on full scene copy.

8 years agoErgh! first compile and test then commit!
Ton Roosendaal [Wed, 6 Jul 2011 12:22:36 +0000 (12:22 +0000)]
Ergh! first compile and test then commit!

8 years agoMaking Blender compile for C90 standard, var declared after code :)
Ton Roosendaal [Wed, 6 Jul 2011 11:44:27 +0000 (11:44 +0000)]
Making Blender compile for C90 standard, var declared after code :)

Also cleaned a line of code that was horribly spread over 4 lines.

8 years agoFix #27880: sequencer separate images operator lost strip properties like
Brecht Van Lommel [Wed, 6 Jul 2011 10:58:23 +0000 (10:58 +0000)]
Fix #27880: sequencer separate images operator lost strip properties like
blend mode, opacity, etc.

8 years agoFix #27877: writing .avi files > 4 GB not working on windows.
Brecht Van Lommel [Wed, 6 Jul 2011 10:19:04 +0000 (10:19 +0000)]
Fix #27877: writing .avi files > 4 GB not working on windows.

Solution is to replace "long" by "int64_t" and "fseek" by "_fseeki64", because
long on 64 bit windows is still 32 bit.

8 years agoFix #27876: particles instancing a whole group didn't take group offset into account.
Brecht Van Lommel [Wed, 6 Jul 2011 10:05:27 +0000 (10:05 +0000)]
Fix #27876: particles instancing a whole group didn't take group offset into account.

8 years agoFix #27875: different texture nodes result after decompose/compose.
Brecht Van Lommel [Wed, 6 Jul 2011 09:58:29 +0000 (09:58 +0000)]
Fix #27875: different texture nodes result after decompose/compose.

8 years agoFix #27873: nan pixels in render with degenerate faces.
Brecht Van Lommel [Wed, 6 Jul 2011 09:15:18 +0000 (09:15 +0000)]
Fix #27873: nan pixels in render with degenerate faces.

8 years agoan example for blf - a basic Hello World (for bge, not blender)
Dalai Felinto [Wed, 6 Jul 2011 08:29:20 +0000 (08:29 +0000)]
an example for blf - a basic Hello World (for bge, not blender)

8 years agonew example for bge.texture, a basic texture replacement
Dalai Felinto [Wed, 6 Jul 2011 07:26:04 +0000 (07:26 +0000)]
new example for bge.texture, a basic texture replacement
fresh simple and didactic example straight from my bge book, enjoy it ;)
video texture documentation online ... tears dropping.

8 years agomoving bge.texture example to an external file
Dalai Felinto [Wed, 6 Jul 2011 07:15:56 +0000 (07:15 +0000)]
moving bge.texture example to an external file

8 years agopatch [#27871] bge.texture documentation from Solano Felício (+ changes from me)...
Dalai Felinto [Wed, 6 Jul 2011 07:05:29 +0000 (07:05 +0000)]
patch [#27871] bge.texture documentation from Solano Felício (+ changes from me) it still needs work
... and I can't test rst in windows so for now let's pretend it builds. If someone can generate the docs and see how it goes please let me know.

(plus a small fix for bge.logic rst)

8 years agoFix #27865: weird mouse warping with continuous grab on OS X.
Brecht Van Lommel [Tue, 5 Jul 2011 20:15:29 +0000 (20:15 +0000)]
Fix #27865: weird mouse warping with continuous grab on OS X.

8 years agoFix #27777: vertex color disabled when in a reused node material.
Brecht Van Lommel [Tue, 5 Jul 2011 19:45:26 +0000 (19:45 +0000)]
Fix #27777: vertex color disabled when in a reused node material.

8 years agoPatch #27829: fix X11 compile problem due to missing XF86XK_AudioForward define
Brecht Van Lommel [Tue, 5 Jul 2011 19:10:28 +0000 (19:10 +0000)]
Patch #27829: fix X11 compile problem due to missing XF86XK_AudioForward define
on Debian Lenny. Patch by "dungeoneer".

8 years agoPatch #27842: build fix for solaris, missing finite(). Patch by A. Hettinger.
Brecht Van Lommel [Tue, 5 Jul 2011 19:04:38 +0000 (19:04 +0000)]
Patch #27842: build fix for solaris, missing finite(). Patch by A. Hettinger.

8 years agoFix small part of #27815: recognize m2ts as video file extension.
Brecht Van Lommel [Tue, 5 Jul 2011 18:54:16 +0000 (18:54 +0000)]
Fix small part of #27815: recognize m2ts as video file extension.

8 years agoFix #27848: sequencer strip hard cut looses soft trim on second strip.
Brecht Van Lommel [Tue, 5 Jul 2011 16:31:21 +0000 (16:31 +0000)]
Fix #27848: sequencer strip hard cut looses soft trim on second strip.

8 years agoFix compile for msvc (broken in r38119)
Nathan Letwory [Tue, 5 Jul 2011 14:53:37 +0000 (14:53 +0000)]
Fix compile for msvc (broken in r38119)

8 years agoFix #27855: crash on enabling high resolution smoke.
Brecht Van Lommel [Tue, 5 Jul 2011 12:25:56 +0000 (12:25 +0000)]
Fix #27855: crash on enabling high resolution smoke.

Wavelet tile generation code was reading outside of array bounds, and as a
result could give a noise.wavelets file with nan values. Now that problem
is fixed, and existing files with nan are ignored.

8 years agoFix part of #27858: crash trying to apply subsurf modifier as shape key,
Brecht Van Lommel [Tue, 5 Jul 2011 10:35:48 +0000 (10:35 +0000)]
Fix part of #27858: crash trying to apply subsurf modifier as shape key,
fix found by Bastian Schreiber.

8 years agoFix #27826: bone envelope head/tail radius not dynamically updated in viewport.
Brecht Van Lommel [Tue, 5 Jul 2011 10:04:40 +0000 (10:04 +0000)]
Fix #27826: bone envelope head/tail radius not dynamically updated in viewport.

8 years agoFix #27846: time extend / E key not work in sequence editor.
Brecht Van Lommel [Tue, 5 Jul 2011 09:47:09 +0000 (09:47 +0000)]
Fix #27846: time extend / E key not work in sequence editor.

8 years agoFix #27810: bones drawn blue in 2.49 file, was still checking stride bone
Brecht Van Lommel [Tue, 5 Jul 2011 09:35:38 +0000 (09:35 +0000)]
Fix #27810: bones drawn blue in 2.49 file, was still checking stride bone
flag for drawing even though that feature is no longer in 2.5.

8 years agoFix #27863: converting curve spline type from python crashes.
Brecht Van Lommel [Tue, 5 Jul 2011 08:57:11 +0000 (08:57 +0000)]
Fix #27863: converting curve spline type from python crashes.

8 years agoFix: #27861 bevel angle limit at 90° wasn't working well on cube, tweaked
Brecht Van Lommel [Tue, 5 Jul 2011 08:28:54 +0000 (08:28 +0000)]
Fix: #27861 bevel angle limit at 90° wasn't working well on cube, tweaked
epsilon value to be a bit smaller.

8 years agofix [#27862] OpenGL render animation don't respect .png RGB option.
Campbell Barton [Tue, 5 Jul 2011 07:46:25 +0000 (07:46 +0000)]
fix [#27862] OpenGL render animation don't respect .png RGB option.