Commit Graph

3030 Commits

Author SHA1 Message Date
Janne Karhu
fa38da021c Some ui reorganization of the physics tab:
* Before the different simulations all had a panel with an "add this" button making the whole tab look really messy. It also rarely makes sense to have more than one or two physics things enabled for a single object, so having all the panels in the tab just added a great deal of visual clutter.
* Now there is a single "enable physics for" panel at the top that allows for enable/disable of any simulation. All actual physics panels are hidden until a simulation is enabled.
* There was no "add" button for force fields before, but I added a toggle between "none" and "force" to unify the ui even further.
2011-01-23 14:04:31 +00:00
Janne Karhu
f39c794c7c Own mistake in fluid particles ui cleanup commit.
* Emission tab was shown without particle settings.
2011-01-22 21:22:29 +00:00
Janne Karhu
f4598728c4 "Fix" for [#25766] Fluid Particle Bugs
* Argh, particles tab was showing the whole "non applicable settings for fluid particles"-galore as the particle type "fluid" can't be checked from rna using the settings type value. Now the ui is a lot cleaner and only settings that actually effect the fluid particles are shown.
2011-01-22 20:38:27 +00:00
Campbell Barton
df6bb34c2b correct fix for [#25737] Console error message 2011-01-20 23:05:25 +00:00
Joshua Leung
fbe8f21826 NLA Editor: Added "Sync Action Length" operator to Edit menu
Although strictly-speaking, this only applies to a certain type of NLA
Strip (there are 3 types), but since only the classic "Action Clip"
gets much attention, it's probably worth exposing this here too to
make batch editing of strips a bit easier.
2011-01-19 10:45:35 +00:00
Joshua Leung
dddb9aa30f NLA Editor: Swap Strips (Alt-F) and Bugfixes
1) Added a new operator to swap the order of strips within a track
(Alt-F).
This makes it possible to select two strips (or more precisely, two
islands of consecutive + selected strips) in a single track and change
the order in which the appear without needing a extra tracks to
perform the move through.

As usual, the non-overlapping rules apply, so there may be some cases
where swapping in this way is not possible without adjusting the
intermediate strips first manually. Otherwise, everything just gets
too tricky to manage deciding what adjustments should be done to the
obstructing strips to make a fit.

2) Freeing meta-strips didn't free their local data properly (i.e.
modifiers they may have had).

3) Adding strips to tracks, where the endframes for the strips
overlapped would cause problems with incorrect ordering of strips. I
still need to double-check whether evaluation works ok in this case...
2011-01-18 23:38:36 +00:00
Campbell Barton
e6027018fe recent commit broke Mesh.from_pydata() 2011-01-18 06:35:26 +00:00
Campbell Barton
8cf1184c04 bad spelling; 'indicies' --> 'indices' 2011-01-18 01:58:19 +00:00
Campbell Barton
28382c7983 document Mesh.from_pydata() [#25688] undocumted functions in pyapi 2011-01-18 01:38:14 +00:00
Joshua Leung
d769ff0d26 Bugfix [#25667] "X-Axis Mirror" in the Pose Options panel toolbar is
misleading (?)

"X-Axis Mirror" option didn't work in Pose Mode, so hiding this option
for now. Perhaps one day we could properly support this for all
operators there, but that is more of a long term todo...
2011-01-17 10:35:04 +00:00
Campbell Barton
743182106f py api: bpy.path.abspath(), option to return relative to a path other then the current blend file. 2011-01-15 20:35:31 +00:00
Campbell Barton
fd7b6519fd move to bf-extensions 2011-01-15 19:36:01 +00:00
Campbell Barton
cae4e92ce8 bugfix [#25640] Cannot edit custom property values in it's popup window 2011-01-15 19:15:35 +00:00
Campbell Barton
f66912a335 misc edits, no functional changes
- enabling/disabling no longer prints in the terminal unless in debug mode.
- remove 'header' struct from BLI_storage_types.h, from revision 2 and is not used.
- Add GCC property to guardedalloc to warn if the return value from allocation functions isn't used.
2011-01-15 15:48:46 +00:00
Campbell Barton
c69ecd3f90 moving io scripts to 'addons' dir in extensions svn, leaving MDD format since I dont maintain this. 2011-01-14 17:28:10 +00:00
Campbell Barton
9d8d25cc34 add icons to show community vs official scripts as well as buttons to filter by support level (currently all scripts default to community)
note: we need better icons for this.

 also formatting edit for ply import.
2011-01-14 16:49:43 +00:00
Campbell Barton
dc1e1baabf rename bl_addon_info --> bl_info, because this isnt necessarily used for addons. 2011-01-14 15:21:13 +00:00
Campbell Barton
3bf46c57c9 add ply import into the file menu. 2011-01-14 00:23:21 +00:00
Campbell Barton
ac5b048e99 initial 2.5x api port. basically working. 2011-01-14 00:06:43 +00:00
Campbell Barton
7c7b31cf84 python3 updates: 2011-01-13 23:38:25 +00:00
Campbell Barton
de5d321e71 pep8 cleanup. 2011-01-13 23:31:04 +00:00
Campbell Barton
a1850ed876 ply importer from 2.4x, no changes made.
svn cp https://svn.blender.org/svnroot/bf-blender/branches/blender2.4/release/scripts/ply_import.py release/scripts/op/io_mesh_ply/import_ply.py
2011-01-13 23:28:36 +00:00
Campbell Barton
9146ca06dd pep8 corrections. 2011-01-13 23:00:51 +00:00
Campbell Barton
29338aa2b3 fix for x3d importer
- files blender exports (blender uses unusual array formatting).
- scene needed to be rotated on import.
- lamp spot size was half as big as it needed to be.

x3d export typo broke image export.
2011-01-13 22:44:47 +00:00
Campbell Barton
4cc4a73a9e feature request from colin levy, camera lens stamp. 2011-01-13 19:16:35 +00:00
Campbell Barton
6a9d93a339 fix for NULL missing pointer check, reported on IRC by admix.
also rename BVH class for consistency.
2011-01-13 05:05:10 +00:00
Campbell Barton
da69433ff9 simple add mesh operator template. 2011-01-12 17:29:54 +00:00
Campbell Barton
0384be9644 bugfix [#25595] Adding Torus when in edit mode strange behavior.
also added Align View option and made local view cursor work.
2011-01-12 15:45:00 +00:00
Campbell Barton
792bf1535f add x3d/vrml importer into the menu. 2011-01-12 08:20:09 +00:00
Campbell Barton
ac64114d1b vrml/x3d import
now its basically usable, next step is to add menu item.

update for changes in mathutils api.
- fix radians/degrees usage
- correct matrix multiplication order
- primitives were being imported twice the size they should be.
- uv transformations were not working.
2011-01-12 08:02:27 +00:00
Campbell Barton
8397e3e476 continued x3d/vrml import update from 2.4x version
- parsed over 1000 vrml test files
- animataion import works again
- importing curves works again
2011-01-11 13:42:22 +00:00
Joshua Leung
4134e4f3ae Adding script template for adding Builtin Keying Sets 2011-01-11 11:25:24 +00:00
Joshua Leung
7225efeba0 - Added operator to clear all transforms from Pose Bones. This makes
it easier to reset a rig to its default pose again
- Refactored clear pose operators to separate out the common parts,
and made sure that they all had descriptions
2011-01-11 11:09:37 +00:00
Campbell Barton
5bcee8cd0a remove misc unused vars and correct theme name for face angles. 2011-01-11 07:40:31 +00:00
Campbell Barton
22577d98c9 initial x3d/vrml importer port from 2.4x.
some files import now.
- no animation support yet
- no rad/deg conversion changes from 2.4x
- matrix multiplication still needs switching.
2011-01-11 02:49:01 +00:00
Campbell Barton
35e68e9785 - bpy.data.lamps.new() now takes a type argument since lamp type also sets class type this avoids needing to use ugly lamp.type_recast() after changing type.
- default vertex color layer name was UTTex when added from python.
2011-01-11 02:30:01 +00:00
Joshua Leung
cf25b10eb5 Todo #22395: Restoring Grease Pencil Editing Mode in DopeSheet Editor
This commit restores some basic functionality for retiming Grease
Pencil sketches. Some of the functionality that existed before still
hasn't been restored (namely snap/mirror tools as well as copy+paste),
though it should be possible to use this for basic retiming and
sketch-frame management again.

- There's still a lot of work required to get this up to the standard
of the rest of the animation editor code, as some of this code was
originally just hacked in based on the old-style code.
- Work is already required to not have to directly access the main db
global to get the list of Grease Pencil datablocks to show, but that
can come along with pending cleanups of the filtering code.
2011-01-10 22:10:28 +00:00
Campbell Barton
bfcea85c6f x3d import now passes pep8 checker 2011-01-10 13:56:14 +00:00
Campbell Barton
ff204a1e4d x3d import tabs -> spaces 2011-01-10 13:16:04 +00:00
Campbell Barton
f5c203af73 copy x3d/vrml importer from blender 2.4x.
svn cp https://svn.blender.org/svnroot/bf-blender/branches/blender2.4/release/scripts/import_web3d.py release/scripts/op/io_scene_x3d/import_x3d.py
2011-01-10 13:11:56 +00:00
Luca Bonavita
3b413b6fa8 [bugfix] Curve tilt button in 3d toolbar showing wrong shortcut
Added Ctrl-T to Curves Tilt button in the toolbar (edit mode), currently was reporting Alt-S for tilt
(reported by Rickyx here http://www.kino3d.com/forum/viewtopic.php?f=21&t=8485&start=0)

Also added the label "Tilt" to the tilt transform in the Curve > Control points header submenu, currently was just "Transform"
2011-01-10 12:50:46 +00:00
Joshua Leung
1b19ffb8c7 "Available" Keying Set bugfix:
This builtin Keying Set is supposed to insert keyframes for every
F-Curve that exists for the selected data (usually objects and/or
bones only). However, as coded, it was only useful for objects, since
it would just go through all the F-Curves for the object's action,
instead of just the F-Curves relevant to a selected bone.

Tweaked the code to make this case (and similar ones) hopefully work
better by default.
2011-01-10 10:22:08 +00:00
Joshua Leung
56db5f10aa Restoring "Pose Markers"
These were markers which belonged to an action instead of the scene,
and are used by PoseLib to keep track of where poses are.

To restore this, I've made this only available in Action/Shapekey
Editor modes, and only when an action is being shown and the "Show
Pose Markers" option in the Markers menu has been enabled. Other than
that, all the standard marker operators apply now (instead of using a
separate set of special operators).
2011-01-09 23:16:05 +00:00
Janne Karhu
9231ff4160 Viscoelastic springs for sph particle fluids, original patch by Stephen Whitehorn (chickencoop)
* Viscoelastic springs between the fluid particles can simulate all kinds
  of viscous and elastic substances, such as jelly and honey. This is
  achieved by creating springs dynamically between neighboring particles
  and adjusting their rest length based on stretching/compression.
* This nearly completes the currently intended functionality for particle
  fluids. The last missing thing is a surfacing extraction algorithm,
  which is needed for a proper representation of a sph fluid.
* I also cleaned up and renamed some of the fluid parameters to make the
  ui a bit easier to understand.
* One addition to the patch is an option to use "initial rest length" for
  the springs, which uses the lengths between the particles at the time of
  spring creation as the spring rest lengths instead of interaction radius/2.
  This makes the fluid keep it's original shape better (good for very
  viscoelastic materials), but can create large density differences inside
  the fluid (not really physically correct for a fluid).
* Viscoelastic springs are stored in point cache as extra data.
2011-01-09 19:09:41 +00:00
Campbell Barton
7bc46973d2 script now passes pep8 checking tool. 2011-01-09 17:35:29 +00:00
Campbell Barton
d9c24f7e7c patch from Andrea Rugliancich, dont export locations for bones which are connected to their parents.
note, we could be smarter about not exporting animation channels which are not needed.
2011-01-09 16:46:01 +00:00
Campbell Barton
9cb71d1159 update for change to Matrix class. 2011-01-09 15:09:18 +00:00
Martin Poirier
c0bae16dad netrender
Downloading results for jobs from blender now uses the current output settings, it doesn't just download the multilayer exr as it used to.

Render output panel now visible under the jobs panel in client mode.
2011-01-08 19:42:26 +00:00
Campbell Barton
c2d133a9fc fix for drawing addons when one of them had a syntax error or would not draw any.
now print the error and continue.
2011-01-08 04:49:33 +00:00
Nicholas Bishop
473838aec9 Fix for bug [#21534] Multires modifier strange deformations
This adds the "Apply Base" feature from my gsoc2010 branch.

Apply Base partially applies the modifier, in that the mesh is
reshaped to more closely match the deformed mesh. The upper-level
displacements are recalculated so that the highest multires level
appears unchanged.

Multires does not currently deal well with too large displacements.
An easy-to-reproduce example: create any mesh type, add multires,
subdivide a few times, then use the sculpt grab brush to drag the
entire mesh over a few units. At the highest level, and at level 0,
the mesh looks fine, but all of the intervening levels will have ugly
spikes on them.

This patch doesn't help with situations where you can't modify the
base mesh, but otherwise works around the problem fairly well (albeit
with a heuristic, not an exact solution.)
2011-01-07 21:12:47 +00:00