Commit Graph

11497 Commits

Author SHA1 Message Date
Brecht Van Lommel 657e02106a Depsgraph: always execute scene camera as if it was on a visible layer,
because even if it is not it can still affect the 3d view or render.
2010-03-08 15:21:39 +00:00
Sergey Sharybin 838842581c - Fixed trouble with rendering curves with disabled modifiers, which are
disabled for realtime displaying but enabled for rendering.
- Calculate tex space for curves before modifiers applying.
2010-03-08 13:49:13 +00:00
Campbell Barton 57eac3b3e3 Ctrl+RMB support for selecting markers when sync markers is enabled. 2010-03-08 11:10:04 +00:00
Sergey Sharybin 3ddbd2abe5 Fixed segmentation fault error when entering curve's edit mode when
there is sufsurf modifier first in the stack.

Some optimizations in curve_calc_modifiers_post():
  - Calculate allverts array only for curve modifier applying to curve
    without derived mesh.
  - Do not calculate deformedVerts array each time deformation modifier
    is applying to derived mesh.
2010-03-08 10:05:51 +00:00
Campbell Barton 3b105657d5 option to transform markers in the dope sheet, needed for re-timing animation. currently supports translate and extend.
TODO:
- select markers in dope sheet.
- transform time scale.
2010-03-08 09:06:58 +00:00
Sergey Sharybin 8d53f3f04e Enable "Build" modifier for curves/surfaces. 2010-03-07 10:40:52 +00:00
Sergey Sharybin 3ad1bfa69e Fix for convert_exec()
"Keep original" option now works for all objects' types
2010-03-07 05:04:22 +00:00
Jens Ole Wund(bjornmose) c3c16603d2 No code chanced .. just tagging hot spots
for 2.5 paradigm 'animate everything'
2010-03-07 00:11:40 +00:00
Dalai Felinto 26fae8985b flipping "tab as space" option (so it's on by default - argh ;)
(and fix error in creator.c last commit)
2010-03-06 22:12:42 +00:00
Dalai Felinto 782cb1f0e0 Tab as Space as a User Preference option. to affect new and loaded text files.
* I put it under General->System. Not sure is the better place for it though (space_userpref.py)
** also: creator.c fix to avoid autoplay of games when scripts are disabled.
2010-03-06 21:45:46 +00:00
Campbell Barton c0f56503bf disallow naming ID datablocks an empty string, this wont work, you cant select them in the ID user input and it can mess up writing files based on names.
also fixed some warnings.
2010-03-06 18:21:57 +00:00
Sergey Sharybin e3c10b9d08 Fixed memory leak caused by incorrect adding data to mesh's layer in nurbs_to_mesh(). 2010-03-06 10:22:27 +00:00
Campbell Barton 1d21d6ca9a reproject
- use render mesh settings rather then view settings.
- fixed bug with brush size being overwritten and allowing non mesh objects to be projected onto.
- made the paint loop less messy & minor cleanup
2010-03-05 22:01:42 +00:00
Campbell Barton 6fd13b904c bug from own commit 27277, ortho wasnt being disabled in render data once set. 2010-03-05 19:57:10 +00:00
Sergey Sharybin d0c70ad1d5 Constructive modifiers for curves and surfaces
Used approach with creating DerivedMesh for curves whet they've got such modifiers.

Available modifiers are: array, edge split, mirror, solidify, subsurf.
2010-03-05 16:47:52 +00:00
Campbell Barton f4298de8aa utility function object_camera_matrix, moved code from RE_SetCamera into this.
use for getting the render matrix of a camera (view plane, winmat, clipstart/end) without rendering.
2010-03-05 14:06:39 +00:00
Joshua Leung f7909598e4 Bugfix #21463: Bone driven Shapekey broken in 2.5Alpha2 (for drivers from 2.49b)
Animation conversion needed to make transform channel driver vars (for bones) to be in local space, since that's what the old code did (albeit in a slightly more roundabout way).
2010-03-05 01:29:56 +00:00
Tamito Kajiyama 6f4ff64570 Merged changes in the trunk up to revision 27226 (Blender 2.5 alpha 2 release point). 2010-03-02 21:57:16 +00:00
Ton Roosendaal 570f9ac0b5 Blender internal number upped to 252, so it matches testbuild
number 2.5 alpha 2
2010-03-02 18:49:09 +00:00
Joshua Leung b55774aebe Missed a spot when renaming the API functions for adding Keying Set paths
Also some indention/whitespace tweaks
2010-03-01 09:42:39 +00:00
Joshua Leung 26932c21eb Bugfix #21384: Bone Driven Shapekeys Child Evaluation Problem
Transform channel drivers for bones in 'localspace' was using the wrong matrix when getting the transforms. I had been assuming that pchan->chan_mat always contained only the matrix-ised transform values stored in the pchan (which is true while constraints are being evaluated, but not afterwards). 

Changes:
- Added a new function to calculate this matrix instead of directly writing it on the pchan->chan_matrix field. 
- Also, made the normalisation of the quaternion values during this process be done on a temp var instead of on the stored value. This was a constant source of confusion in the past, so let's see if we can do without it now :)

Unrelated to this commit, I've also fixed a compiler warning with previous commit that I missed (missing include).
2010-03-01 05:19:07 +00:00
Campbell Barton 3501cfa04e update for .B.blend
- disable running scripts automatically
- set sequencer image preview
- added a 3D viewport in the python script screen & selected 'Text' in the next editor.
- enable stamp rendertime by default. (stamp its self is disabled)
- set the stamp font size to 12 (was 8, too small)

also set the default font size to 12 for new scenes.
2010-02-28 17:42:05 +00:00
Andrea Weikert 1a2ceea381 soundfile loading: fix crash with long path to the sound file (was 160 only and unchecked) 2010-02-28 11:02:06 +00:00
Campbell Barton 5369bd9c21 - template with an example of a modal operator drawing with opengl (draw a line on the screen)
- access to event.mouse_region_x/y
- basic type checking to callback functions (use PyCapsule names)
2010-02-28 09:36:02 +00:00
Tamito Kajiyama b21a994076 Merged changes in the trunk up to revision 27178. 2010-02-28 03:44:15 +00:00
Campbell Barton bec3d21307 bugfix [#21381] Wrong negative separated units 2010-02-27 23:22:10 +00:00
Ton Roosendaal a9e3e0e40f Patch #21267 by Sergey Sharybin
His log:
There is a small typo in copy_curve(): there will be serious troubles 
if this functions is called for OB_FONT in edit mode (for my cases 
it is segmentation fault).
I think we should set editfont to NULL for cloned curves (as it is made 
for edit nurb).

This bug was found by trying to edit text with applied Cast modifier 
and while I was searching what's wrong, I've found that in 
castModifier_deformVerts() DerivedMesh is creating for all objects, 
but in castModifier_*_do() derived mesh is used only for OB_MESH 
objects. Maybe this place could be optimized a bit by skipping DM 
creation for non-meshes?
2010-02-27 16:06:33 +00:00
Campbell Barton 34857189bc fixes for auto script execution, changing the user preference also updates the global flag. 2010-02-27 12:34:49 +00:00
Joshua Leung be44ac7490 * Renaming some Keying Sets API functions to make the terminology more consistent in the UI
* Fixed bug with hotkeys for adding properties to Keying Sets using the KKEY over the relevant buttons. Was calling the remove callback instead.
2010-02-27 02:03:33 +00:00
Campbell Barton 15db857628 rename flag for auto script execution since scriptlinks are no more. 2010-02-27 01:47:46 +00:00
Joerg Mueller a7b73a49a4 Fix for ffmpeg audio rendering being to long. 2010-02-26 21:08:06 +00:00
Campbell Barton 10dbf6faee rename extension to addon after discussion with meta-androcto & mindrones 2010-02-26 14:28:29 +00:00
Campbell Barton 878d8b44ee remove rna functions image.get_export_path() and image.get_abs_filename(), filename functions should not be spesific to images.
rename BKE_get_image_export_path() to BKE_rebase_path() and take a filename arg rather then an image.

obj export file copy was also not working because of a missing import.
2010-02-26 11:50:59 +00:00
Campbell Barton 9352c9f0c1 use negate_v3 rather then multiplying a vector by -1.0 (no functional changes) 2010-02-26 09:02:52 +00:00
Campbell Barton 2cf6141e7c fix for fly mode restoring non-euler rotations 2010-02-26 08:47:20 +00:00
Janne Karhu cf4ba30f79 Few small hair dynamics goodies:
* Effectors now work with hair dynamics.
* Hair dynamics has a new "Collider Friction" parameter that works similarly to internal friction except now all collision objects effect the hair velocity. Useful for quick'n'dirty interaction with objects as the calculations are really fast, but doesn't really take away the need for proper hair-object collisions.
2010-02-26 03:24:21 +00:00
Janne Karhu 88d6250005 Fix for [#20647] Children from particles on a subsurf mesh don't render correct 2010-02-25 01:57:09 +00:00
Janne Karhu 8b9e0e941c Particles with "no physics" didn't stick to the emitter like they were supposed to. 2010-02-25 00:03:49 +00:00
Janne Karhu d1f19d7e84 Fix for [#19955] 2.5 Particles are calculated wrong when object has any transform animation
* The exact location of particle birth wasn't cached if cache step was greater than 1, so the interpolation from an unborn particle to a living one wasn't accurate at all.
* Although not ideal, the current solution is to copy the birth location to the previous cached frame so it's always exact. This should work properly for memory & disk cache.
* This fix shouldn't cause any problems, but exhaustive tests of caching are difficult so be sure to let me know if there's strange behavior.
2010-02-25 00:03:16 +00:00
Campbell Barton 99b288da96 view selected now uses boundboxes of dupli-objects and ignores centerpoints of the instance objects when it has duplis. view selected also working again for selected paint mask faces. 2010-02-24 20:11:35 +00:00
Campbell Barton aebe86bef1 hair was running collision functions (copy to/from collision arrays), even when collision could not be done. 2010-02-24 18:06:51 +00:00
Campbell Barton b888a32eee getting double frames problem, set the epsilon to 100th of a frame rather then 100,000th. 2010-02-24 17:14:16 +00:00
Campbell Barton 03590eb8a9 allow cloth sim for linked duplicates, not many people use this but we need for using hair on linked characters, if there are bugs with this we'll need to fix so enabling for now with comments that its experemental. 2010-02-24 15:35:15 +00:00
Campbell Barton 6afd97b9af multi-multi modifier support. 2010-02-24 15:03:28 +00:00
Campbell Barton 3f5786a00e added support for proxies as drivers back. 2010-02-23 17:56:45 +00:00
Tamito Kajiyama 07fdcb1f1b Merged changes in the trunk up to revision 27063. 2010-02-21 21:47:52 +00:00
Campbell Barton 3307d6d509 building without jack was broken 2010-02-21 19:54:18 +00:00
Joerg Mueller 38ef2df8f7 2.5 Audio:
* Jack Transport support!
* Minor sequencer audio corrections.
2010-02-21 18:01:41 +00:00
Joshua Leung f3b9ea066e Bugfix #21245: "Track to" (Ctrl + T) operator was missing notifier updates
Bugfix #21255: Clear track operator did not remove TrackTo constraints too. This could still be made to do Locked Track and other tracking constraints later too, but for now this will do.
2010-02-21 11:05:52 +00:00
Campbell Barton 3bf2715039 apply visual transform to pose
So constrainted bones can have their transform applied to their loc/scale/rot, then remove the constraints
2010-02-19 15:34:26 +00:00