Commit Graph

47594 Commits

Author SHA1 Message Date
Campbell Barton
0b24ca19ff bugfix - running scriptlinks did not initialize the armature weakref dict, thanks for finding caedes!
this bug is in 2.45 but can work around by setting it manually
---
import sys as pysys
try:
	pysys.modules['__main__'].__arm_weakrefs
except:
	pysys.modules['__main__'].__arm_weakrefs = {}
---

changed how draw modes work - when displaying textured meshes in editmode, only draw selected edges when "Edge Draw" is not enabled. this makes it easy to see the texture/mapping without edges getting in the way.
This means editmode can draw like UV/Face mode did when "Draw Edges" was disabled.

Also made the active vert/edge/face color themeable, still need to set the default to somthing other then pink.
2007-09-23 22:02:18 +00:00
Campbell Barton
0096d180b9 Dof Object - set the depth of field to an object - set in the camera edit panel but the distance is calculated on the camera object only so linked cameras work.
Alt+Period - sets active pivot

some tooltips didnt make much sense, edited a few.
2007-09-23 18:27:01 +00:00
Daniel Genrich
b4fb141ea5 In the middle of switching to own collision detection, WIP commit (don't expect anything to work, but compile) 2007-09-23 17:40:44 +00:00
Peter Schlaile
ba6a09f31d == Sequencer / FFMPEG ==
Confused RGBA32 with RGBA.
2007-09-23 17:26:22 +00:00
Campbell Barton
ae59f0aa8f drawimage wasnt updating when shadow mesh was enabled
transform manipulator was shown in sculpt mode which is inconsistant sicne G key dosnt work and other painting modes have this disabled. - thanks theeth for finding this.
2007-09-23 15:10:41 +00:00
Peter Schlaile
37a8e56bf0 == Sequencer / FFMPEG ==
Updating to latest FFMPEG version.
2007-09-23 14:05:22 +00:00
Peter Schlaile
fd44aa2204 == Sequencer / FFMPEG ==
Updated FFMPEG to latest version.

Since we now use swscaler, things should be a lot faster!

Please check on Big-Endian, if this still works!
2007-09-23 14:04:23 +00:00
Peter Schlaile
9e4978b3de == Sequencer / FFMPEG ==
Updated FFMPEG to latest version. (And fixed some Tab-codes, that Emacs
didn't like in OPENEXR-related lines)
2007-09-23 14:02:25 +00:00
Andrea Weikert
70edf4e293 fixing some compile problems with MSVC7.1/scons
* stupid misplacement of declaration
* replacing fmodf with fmod (fmodf not available with MSVC7.1 when compiling C-code)
* appending CXXFLAGS to CCFLAGS in tools/Blender.py to avoid linking errors with runtime library (/MT not set) 
  - jesterKing, could you please check if that's ok?
2007-09-23 13:52:08 +00:00
Campbell Barton
5f64888137 added lasso selection for UV coords 2007-09-23 13:00:35 +00:00
Campbell Barton
3e40c994bb missing null check 2007-09-23 10:38:09 +00:00
Nicholas Bishop
df051fbc13 == Retopo ==
Changed some of the retopo functions to use doubles instead of shorts; this makes the transformation more accurate if the view is zoomed out far enough to have multiple vertices appear at the same pixel location.
2007-09-23 06:02:58 +00:00
Campbell Barton
da8aa3c9d2 new snap tool in UV mode "Selection -> Adjacent Unselected"
(functionality from recently removed python script: uvcalc_from_adjacent.py)

This is useful when adding faces in areas that are alredy UV mapped, this can be used to snap the selected face to the existing face's UV's.
2007-09-22 19:28:36 +00:00
Campbell Barton
aee06ac0d0 added an active face for the mesh editmode and normal mesh - this is needed because the TFace flag was not always easy to access from editmode.
using the last selected face was almost good enough however when selecting verts and edges the last selected face would become inactive and the space image would flicker about too much.
The active face is used for getting the space image at the moment and keeps scripts that use this flag working also.

This has 2 commands to get and set, so the variable is not accessed directly.

all "UV Calculate" scripts work now

last commit crashed when in solid draw mode, it seems subsurf modifier is ignoring the displayMask since MTFACE is available. just made it do a null check for now.

uvcalc_follow_active_coords.py - should be done inC and put in the snap menu.
2007-09-22 17:54:13 +00:00
Campbell Barton
d5b186ba6b made draw shadow work as it used to (I didnt understand at first that this was to draw the subsurfed UV faces)
this is really slow, its unuseable on suzanne subdivided twice on my computer with 2.45 and trunk, this could be sped up however it would need to be subsurf spesific.
2007-09-22 15:32:08 +00:00
Campbell Barton
5d2bf66e79 fix for some button overlap problems 2007-09-22 08:34:40 +00:00
Campbell Barton
0ed3e0bb4f made sticky UV editing options more accessible by adding them to a popup in the header.
Changed how the sticky setting is stored in DNA - (as a char rather then 2 flags).
replaced the UV/FACE icon with another needed for the sticky menu.
removed 2 unused icons.

commented the UV transform panel since it only had 2 buttons in it.

depgraph update calls needed to be added to Ctrl+V/E/F menu's because some commands were crashing.
2007-09-22 06:58:40 +00:00
Ken Hughes
2244d19bc2 Python API
----------

Bgfix #7386: added support for texture flags TEX_PRV_ALPHA, TEX_REPEAT_XMIR and
TEX_REPEAT_YMIR to tex.flags attribute.
2007-09-21 20:46:17 +00:00
Campbell Barton
641fc64eb3 unwrapping would crash if there was no space image 2007-09-21 14:34:29 +00:00
Daniel Genrich
5b9140a209 Fixed some collision response issues. (weekend commit, some half done work in) 2007-09-21 13:34:19 +00:00
Campbell Barton
3b4d74de38 added draw types for UVs
speedup for UV display (the MTFace loopup is only done once and stored in the EditFaces temp pointer)
2007-09-21 10:28:04 +00:00
Campbell Barton
9dcf337e93 image display option for viewing non square pixels (x/y aspect for each image) - useful when editing UV coords with textures that have been resized to values that run fast in openGL (256/512/1024) but have lost their original aspect ratio, especially useful when rotating UV's.
Bumped the subversion to 2, so the default aspect is set to 1:1.

Made "Repeat Image" option time image drawing and bail out early if its taking too long. (quater of a sec max) this could be avoided if the texture was drawn on a quad, but that wouldnt support other image draw options.
This is a good short term solution because it was possibly to lock up blender if you zoomed out a long way then enabled "Repeat Image".
2007-09-20 22:38:04 +00:00
Matt Ebb
d3a8bcc435 * Fix for old files loading up with gloss = 0.0 and gloss samples = 0.
I blame the 2.45 version-raising!
2007-09-20 05:56:57 +00:00
Campbell Barton
037f6f20d8 added a view properties panel for image/uv. moved the cursor x/y there to match the 3d view.
added an optional view setting - Repeat/Tile image display so mapping with tiled textures you dont have to guess the locations or look in the 3d view to see what your mapping to.
copy and face menu was missing depgraph update calls.
2007-09-19 23:50:46 +00:00
Campbell Barton
28ae78a745 reworked how tile functions, seperated image and tile setting functions/events and made tile work with image pinning.
changed how image replace works,
it used to load a new image and then assign that image to all faces in meshes active UV layer.
without replacing images in textures or images on inactive UV layers

now it simply changes the filename of the existing image and reloads the contense.

This is different in some other subtle ways, 
1) replace used to use an existing image if it was available,
this could be confusing because when I replaced with an image I didnt like, but had alredy applied to objects in some other scene, replacing again would alter the images from models unintentionally.
2) since replace used to load a new image, it would load with a new name. at the moment the name is left unchanged,
This is better when dealing with linked libraries. because when replacing a images, anything linking to that texture gets broken. since imaged can get automatically named strings longer then its possible to enter into the user interface, you could wind up with some really annoying cases where it wasnt possible to type in the original name again.

Since this replace effects everything usiung the image, we may want to have 2 replace functions, "Replace Globaly" and "Replace in Mesh"
2007-09-19 16:28:52 +00:00
Daniel Genrich
4c7c711b8a Fixed collision object init, New: Apply collision impulses so minimum distance is preserved (friction still missing) 2007-09-19 12:13:16 +00:00
Campbell Barton
1c603b63c7 Local Image View for UV/Editmode
When mapping multiple images on 1 mesh, the UV coordinates often overlap and in many cases you only want to edit the uv coords for the faces applied to that image,
this is an option that only displays UV's for faces use the currently displayed image.
2007-09-19 10:54:49 +00:00
Daniel Genrich
6e755b9089 Fixed wind force direction (reported by mfoxdogg) 2007-09-19 08:07:47 +00:00
Matt Ebb
9f17eae3f0 * Documented scene.objects.camera , used for getting the active camera
of a scene.
2007-09-19 06:07:54 +00:00
Daniel Genrich
98e8486baf Fix: kicked springs caching since it's unused and needs lots of memory 2007-09-18 19:56:58 +00:00
Campbell Barton
78a20a930a fixed copy between UV layers.
made the UV layer menu a generic functions (can make a menu from the names of any custimdata layer type)
added a menu in the UV window for selecting teh editnmode UV layer - If there ends up not being enough room in the header this may need to be removed.
2007-09-18 19:39:25 +00:00
Daniel Genrich
b852223456 arround 50% speedup in calculating spring force using OpenMP 2007-09-18 14:05:36 +00:00
Diego Borghetti
457824e437 Fix insert_vert_icu, missing the new "fast" argument. 2007-09-18 14:01:33 +00:00
Campbell Barton
621a1746de added pin for images, this is useful because you might want to edit a model's verts without the image changing. 2007-09-18 13:10:17 +00:00
Campbell Barton
0a8c558c17 The option to automatically run scriptlinks wasnt in the preferences so it was not at all obvious that it was a preference. added a button for this in the prefs. 2007-09-18 12:24:22 +00:00
Daniel Genrich
138b436914 Fixed floating point rounding error in goal velocity computation, pointed out my mfoxdogg, additional code cleanup 2007-09-18 11:42:52 +00:00
Joshua Leung
df4505b4ef Missing newline character in printf 2007-09-18 08:29:18 +00:00
Daniel Genrich
9dbcffadec Temporary fix for loading crash of .blends with cached frames. Also fixed some goal behavior/init problem to match SB behaviour 2007-09-18 07:16:57 +00:00
Campbell Barton
0a2b8b1308 A user submitted a BVH file that took a long time to import (I didnt end up finishing since it was so slow)
this is mainly because adding pose keyframes recalculates every handle so importing became increasingly slow.

added a 'fast' argument to insertkey that python api's insertPoseKey can make use of since it alredy accepts a 'fast' option.

The ~4450 frame, 31 bone BVH imports in ~108sec now

Seperated editmode switch statement in space.c's event handling,
if editmode is disabled, or the images is a render or composite, UV editing operations are ignored.
In previous releases it has given an annoying warning if selecting or scaling is attempted when out of UV/Face mode.
2007-09-18 06:41:29 +00:00
Joshua Leung
d86a03113d Another purge of compiler warnings (some of which I've been getting for a while) as a warmup exercise. 2007-09-18 06:33:24 +00:00
Campbell Barton
a87b2ff22b unwrapper wasnt working properly when UVSyncSelection was NOT enabled.
unwrapper and UV mapping menu items were not selecting UV's when initializing a new UV layer
selecting with the brush (BB) in the UV window did not update in the 3D view realtime, use the lock settings to make this work.
2007-09-18 02:59:57 +00:00
Daniel Genrich
969397ced2 bf-blender/trunk/blender rev 12059 + 12060 + 12064 merged (this commit is only 12059, others are already merged) 2007-09-17 19:57:47 +00:00
Daniel Genrich
deceff52d1 Add WITH_BF_OPENMP for openmp usage, untested on msvc 2007-09-17 19:32:15 +00:00
Campbell Barton
b32e5f7cb4 small text cleanup 2007-09-17 18:24:53 +00:00
Campbell Barton
0c7c57685e New feature for UV/Editmode - 'Sync Mesh Selection' a button in the UV header this mode is disabled by default.
This is implimented by defining macro's that take the mode into account when get/set/checking the selection and that a face can be drawn.

When this is enabled, things work a bit differently
* all faces are drawn in the UV view (except hidden faces).
* selecting faces/verts in the UV window selects them on the mesh also and vice vercer.
* when EditMode (Face only) is enabled, selecting faces in the UV view is not sticky.
* hiding/(de)select all and invert selection simle call the editmesh functions.
* there is no way to select 1 uv corner of 1 face (because a mesh cannot have this as a valid selection) either all UV's that use a vert (sticky), or the whole face.
2007-09-17 18:22:06 +00:00
Kent Mein
d1e5c86b76 Added a NULL check that was needed.
Kent
2007-09-17 15:39:03 +00:00
Kent Mein
ed47851517 Updated calls to insert_vert_ipo to be
insert_vert_icu since insert_vert_ipo no longer exists.

Kent
2007-09-17 15:32:10 +00:00
Joshua Leung
063fbdc2a4 Attempted bugfix for TrackTo constraint - reverting the only change (that I've picked up so far) that I made to the code of the TrackTo constraint. Apparently the Align to Target feature was broken... 2007-09-17 11:43:48 +00:00
Joshua Leung
52f551678b == Action Editor - Copy and Paste Tools ==
Now it is possible to do Copy+Paste in the Action Editor, like in the IPO Editor. There are two new buttons in the Action Editor header for this, using the familiar icons.

* To copy...
Select the keyframes you wish to copy, and the channels that they occur in (except for ShapeKey mode, where it is not possible to select channels). Click copy button.
* To paste... 
Place the current frame where you want the first of the keyframes from the buffer is to be pasted. Select all channels you wish the keyframes to be pasted into. Click paste button. 

Currently, keyframes are only pasted into 'compatible' curves (i.e.  LocX keyframes can only go to LocX, and so on). This may change after user feedback, if this is found to be too restrictive.

== Code Changes ==
I've made a few changes which allow this code to be nicer. 
* renamed insert_vert_ipo to insert_vert_icu, as that represents its actual purpose better (and changed all occurrences I could find)
* created a new function, insert_bezt_icu, which does the actual inserting of provided BezTriple data to a given IpoCurve 
* recoded insert_vert_icu to use this new function, and also the IPO-Editor keyframe pasting (i.e.  pasting in Editmode)
2007-09-17 11:41:12 +00:00
Matt Ebb
023a929363 * For some reason this didn't go through last night - bumped the
subversion for lamp curve mapping loading.
2007-09-17 11:30:45 +00:00