Commit Graph

49420 Commits

Author SHA1 Message Date
Brecht Van Lommel
025e6b8b4f Fix for error in last commit: forgot to check if me->medge==NULL when making
LSCM seam groups.
2004-09-12 22:35:49 +00:00
Martin Poirier
74c0946e4a Emilie and Chris work on the Constraint UI (alignement). 2004-09-12 19:06:01 +00:00
Martin Poirier
c2b71254ab Fix for bug #1591: Bones with TrackTo constraint do not scale properly when armature object is resized.
http://projects.blender.org/tracker/?func=detail&atid=125&aid=1591&group_id=9
2004-09-08 12:12:52 +00:00
Jens Ole Wund
2e185f2c2f dangeling pointer fix :) 2004-09-07 20:45:09 +00:00
Martin Poirier
521f37cc5c Got rid of quite a lot of warnings. Lot of them MSVC-ism dealing with const casting.
Some implicit cast warnings and more importantly, changed the parameter type to int for functions passing the particles random number seed around. No need to use floats there, it's an int anyway.

Effect.c is now warning free (on MSVC 6.0 at least)
2004-09-07 01:39:44 +00:00
Martin Poirier
3b9ea9021b Added some align block where needed. (Sorting buttons and Link/Append) 2004-09-07 01:26:44 +00:00
Brecht Van Lommel
01c17446ac Fix for bug #1582: LSCM mesh splitting based on seams gives incorrect results in some setups.
The algorithm used before to split up the mesh before unwrapping was based on
vertices, resulting in leakage in some setups. Now it's edge based, allowing to
select only two edges of a triangle, and not automatically selecting the third.
2004-09-06 14:30:28 +00:00
Nathan Letwory
17e20e26ba Add theme colour for "Draw Normals" 2004-09-06 08:10:56 +00:00
Nathan Letwory
28d1b60059 Small patch by Joilnen Leiter:
Cancel window split with RMB
2004-09-06 07:58:11 +00:00
Martin Poirier
ea815d51ce All constraints (except FollowPath) now check if subtarget (bone) is valid and disable constraint if not. Previously, this only worked with IK Solver.
The problem was that it defaulted to the armature object as target but didn't clear the subtarget field. This makes it clear that there's a problem.
2004-09-05 21:20:03 +00:00
Martin Poirier
ae9347662b Stretch To constraint
Read today's meeting minutes for a description.

Bjornmose: We'll need some example and screenshots for the dev pages of blender3d.org. If you can do some, neat, if not, I'll do them.

Matt, Emilie and Chris: Please review UI addition. Pixel alignement and all that fun stuff has not be overly looked for (though I did some cleaning by adding alignment blocks).
2004-09-05 20:21:16 +00:00
Martin Poirier
fbfa96f647 Quit confirm dialog 2004-09-05 15:43:45 +00:00
Ton Roosendaal
54a5870f3e Typo in ListBase -> listBase 2004-09-05 14:18:45 +00:00
Ton Roosendaal
e3286f5f60 Huh! that file was added... anyhoo, here again! 2004-09-05 13:59:08 +00:00
Ton Roosendaal
949bcc5016 SConscript for new file 2004-09-05 13:53:55 +00:00
Ton Roosendaal
bf83f6ddd8 Second itteration of global undo system. Now based on:
- file-to-memory save
- incremental difference steps (compression)

everthing has been tightly coded to use minimum of memcpy or allocs. In
fact this system works with a single full buffer (=file) in memory, and undosteps as differences from it.
Speed gain is factor 4-8 faster. I've added it in CTRL+ALT+T timer menu for
a test. Please note the gain is especially in the undo-storing, not in
retrieving undo.

Also new: file read option to skip UI read (file menu). This now also is
default for the undo system.
2004-09-05 13:43:51 +00:00
Chris Want
61e4707bdb Fix for bug #1580.
If the mesh 'key' doesn't have an IPO, then don't try to
select any key's on the non-existent IPO curves in the
action window.
2004-09-03 16:42:46 +00:00
Kent Mein
f284ba64b0 Ipo.c
Removed a block of a bunch of unused vars...
	Added a return NULL to the end of a funtion that is suppose to
		return something and could fall through.

editconstraint.c
	Added a newline to the end of the file to get rid of a stupid warning.

Kent
2004-09-03 14:31:06 +00:00
Kent Mein
076a2eb4ea removed 3 forward declarations's inside of a fuction.
They were not needed were for functions that were in the same .c file
higher up and I think its sort of a non standard way of doing things.
(using prototypes would probably be more inline with the other code but
as I mentioned they are not needed and were causing warnings in gcc)

Kent
2004-09-01 13:29:44 +00:00
Stefan Gartner
ea8c97b44b fix typo in GameLogic documentation 2004-09-01 13:19:42 +00:00
Kent Mein
e63db96a57 I removed the following:
LEVEL_2_CPP_WARNINGS += -Wstrict-prototypes
  LEVEL_2_CPP_WARNINGS += -Wmissing-prototypes

Every version of g++ i've used has stated these two were not for g++
but for c or objectivec.

Kent
2004-09-01 12:09:22 +00:00
Ton Roosendaal
2e0380f365 The undo test is now safely hidden behind a user-button (temporal)
Activate it in User menu "edit methods"
2004-08-31 21:01:21 +00:00
Ton Roosendaal
bd31cc5eb4 Enabled trial for 'global undo'. This now only has undo steps for
- transform (grab, rot, scale, etc)
- all button commands, including menus

I sacrificed for now the UKEY in the 3d window for it. Shift+U does a redo.
(Only in 3d window)

What this system does is saving files in the temp directory (user pref).
The filenames are cycled around (32 in total now).

This commit will follow shortly with a userpref for it, not to frustrate
people who want to work in normal fashion with blender.
2004-08-31 20:13:32 +00:00
Kent Mein
934a11e9ff ok my last little tweak for today ;)
I cleaned up the code a little did a couple of these:
if (blah > stuff - wah)  blah = stuff - wah;

changed to....
tmp = stuff - wah;
if (blah > tmp) blah = tmp;

and combined multiple if statements

Kent
2004-08-31 14:23:29 +00:00
Ton Roosendaal
0a305446a5 Three functionalities in one commit, but there's overlap so I can't
separate it...

1) Curve/Surface editmode undo
Uses same syntax as mesh undo, so simple to integrate. Edit-curve data is
also quite simpler, so no need for any hack at all.
It re-uses the undo system from next point, which is nice short & clean
local code

2) Framework for global undo
The undo calls themselves are commented out. In a next commit I want to
enable it for a couple of main features, for further feedback.
The speed goes surprisingly well, especially with this new version that
'pushes' undo after a command, ensuring interactivity isnt frustrated

3) framework for texture based icons in Blender
Not activated code, but tested here. Part of 2.3 UI project.

btw: Johnny Matthews will assist in (and complete) the undo project
2004-08-31 13:43:18 +00:00
Kent Mein
e525578f4d Some small clean ups again...
I added ifdef's around a var declaration since the code using
it had them...  Also initalized two vars that were questionable if they
could reach a state where they weren't assigned.

Kent
2004-08-31 13:10:45 +00:00
Kent Mein
0bbcff693c Added the bmp include forgot to do that when I added the write support.
(fixes a warning about the imb_savebmp undefined...)

Kent
2004-08-30 18:43:00 +00:00
Ton Roosendaal
316e31e785 Realtime updates of taper and bevel while editing them. 2004-08-30 18:31:30 +00:00
Brecht Van Lommel
92eaa7d095 Fix for bug #1574: shift+tab switched back to object mode from all modes,
except for Texture Paint mode. Now it works for texture paint mode too.
2004-08-30 17:24:58 +00:00
Ton Roosendaal
e3f97af5c8 Stoopid typo in 'full osa' caused the wrong mask value to be sent to the
raytracer. Instead of only tracing the current subpixel it did all
(or most) of them.

Solves reports on slow AO in 2.34, but also will affect ray_mir and transp
2004-08-30 17:17:08 +00:00
Ton Roosendaal
106c3340ad Added a flush in radiotisitizer tool, to update draw of shooting patches
while it's doing a 'Go'
2004-08-29 17:05:19 +00:00
Ton Roosendaal
1c5c0485ed Forgot to export Object as struct Object... 2004-08-29 16:27:54 +00:00
Ton Roosendaal
969fb8f765 Apparently the curve render code doesnt use the displist... so there's
duplicate code for tapering needed.
Now tapered curves render too.
2004-08-29 13:58:48 +00:00
Ton Roosendaal
4edfc3a919 Feature for Curve objects in Blender; 'tapering'.
Next to the "BevOb" button you now have a "TaperOb" button to give a name
of a curve object which defines the width of extrusion of the 'BevObj'
along the curve. The TaperOb curve typically is horizontal, where the
height denotes the width.
Important rules;
- Only the firste curve in TaperObj is evaluated
- the first width is left, last width is right
- it scales the width of normal extrusions based on evaluating the taper
  curve; which means sharp corners in taper curve won't be easily visible

(That latter feature could be improved by extrusing based on the points
in the taper curve; this is a *lot* more work)
2004-08-29 09:21:52 +00:00
Martin Poirier
8c66fa07e0 Added proper qualifier handling to make it possible to switch to Shrink/Fatten and Shear while already in transform mode. 2004-08-27 00:02:49 +00:00
Chris Want
95b9534d2b We don't use ODE anymore, so I commented out some lines that make it
required to build.
2004-08-26 22:42:44 +00:00
Jens Ole Wund
bd768e00f3 claiming this to be mine .. to remain compatible to tuhopuu development
CONSTRAINT_TYPE_STRETCHTO	15
bjornmose
2004-08-26 22:00:14 +00:00
Stephen Swaney
81b5108f49 Bpy access to more texture features: Musgrave, Voronoi, and Distorted Noise.
Contributed by Joilnen B. Leite ( pidhash).  Thanks!
2004-08-26 02:16:26 +00:00
Matt Ebb
2ce265bb67 Small modification to redraw the 3D View when an image is reloaded. 2004-08-24 08:36:02 +00:00
Matt Ebb
54c9a1ae40 Added Zoom In and Zoom Out menu entries to the uv/image editor 2004-08-24 03:27:05 +00:00
Johnny Matthews
5e49fe73f3 This commit should clean up the warnings in edge_rotate that Ton brought up. The do not show up now on mine with /W4 on MSVC. 2004-08-23 22:13:57 +00:00
Ton Roosendaal
b83c41080c testing 1 2 3 2004-08-22 18:16:49 +00:00
Ton Roosendaal
8e9af33c01 testing 1 2 3! 2004-08-22 13:24:09 +00:00
Ton Roosendaal
5d4ce78270 Testing commit to check maillists 2004-08-22 11:06:00 +00:00
Johnny Matthews
ea30bc3e2a This commit adds the 'Rotate Edges' functionality. Select edges and ctrl-E and choose rotate edges. is also in the mesh->edges menus in 3d header and toolbox. I put it here since there was not concensus about replacing the code for CTRL-F with this code. 2004-08-20 21:22:47 +00:00
Matt Ebb
f1ff79e5af Added a missing hotkey in the toolbox. 2004-08-18 06:59:27 +00:00
Matt Ebb
6d05bea70b Small tweak to the default Glow effect values, so there's a
noticable difference when you add the effect (preventing
people like K-Rich wondering why it's not working :)
2004-08-18 04:32:57 +00:00
Brecht Van Lommel
1e2c1f8a4a Bugfix for incorrect unwrapping of some triangle shaped quads;
Triangulation of these quads could lead to degenerate triangles, resulting
in UV's in random places. Now quads are automatically triangulated in the
best direction.

This bug was reported by Tim Fisher (thanks!).
2004-08-17 16:00:32 +00:00
Willian Padovani Germano
446e1fae7c ** Note: two new files added, projectfiles will need an update.
Scripts:
  Campbell Barton (Ideasman, thanks) updated his Wavefront OBJ importer.
BPython:
- Finally committed pending contributions:
    Chris Keith wrote the Blender.Sound module -- still some testing to do this week;
    Joseph (joeedh) added the OnLoad scene script event;
    Satish Goda added 6 GLU functions to Blender.BGL.  Great additions, thanks all!
- Small changes to Blender.Load (leave editmode as Blender wants) and Window.EditMode (allow definition of "undo string");
- Fixed bug #1539: Window.RedrawAll() crashed Blender if an empty spacescript was available while using it in a gui-less script.
- doc updates.
2004-08-17 04:26:00 +00:00
Nathan Letwory
5a39312392 Objects will be autoselected on Append. There's a button to toggle this behaviour, by default it's enabled.
Feature requested by Bastian Salmela.
2004-08-16 06:46:41 +00:00