Commit Graph

9419 Commits

Author SHA1 Message Date
Ton Roosendaal
c4a2022fe1 Fix for makefile to enter interface dir 2008-01-07 19:06:15 +00:00
Ton Roosendaal
0729ba9646 New linking order for the 2.5 editor/wm libs 2008-01-07 18:35:06 +00:00
Ton Roosendaal
1363134dee Whole lot of changes.... here a shortlist:
- removed editors/area and put this all in screen
- added first python calls (note, a new c file for scriptlinks)
- added view3d editor callbacks (no drawing yet)
- added files in editors/interface

(Cmake and Scons has to be fixed, help welcome!)

- now areas/headers are being converted on file read
- note: previously saved 2.50 files will crash!!! (.B.blend)
- area regions are being drawn, first handler for cursor added (on edge)
- window duplicate and scale works correct for screen subdiv

Todos for me:

- need to fix things in syntax (function names) a bit still
- more operators for screen
- define how Context will work... still unresolved when it gets set
- docs!

Reviews of code structure is welcome!
There are also more todos now for others, but it can wait a couple of days
2008-01-07 18:03:41 +00:00
Nathan Letwory
30310a530a * make sure blender2.5 still compiles when WITH_BF_VERSE=1 2008-01-05 13:55:30 +00:00
Chris Want
a2b8986d1d Support for CMake 2008-01-03 22:20:45 +00:00
Nathan Letwory
c87785671c * make sure we have still a compiling GE with scons/mingw
* assist ideasman also for scons/mingw with ffmpeg enabled
2008-01-02 12:35:30 +00:00
Nathan Letwory
3c4f424fc8 * making sure removal of headers still has successful compile on win32 2008-01-01 22:10:39 +00:00
Campbell Barton
a42e548e81 removed some more header files, made the game engine compile with removed header files, added includes to SConstruct files. 2008-01-01 19:20:49 +00:00
Ton Roosendaal
372ee054c0 Some notes for those who try to follow this :)
- first work on getting area/screen handling back
- added structure for where to put stuff, is still under
  review, wait a bit for docs?

Campbell is working on removing every bad level include from
sources, so we can safely rebuild the src/ directory.
2008-01-01 18:29:19 +00:00
Campbell Barton
58bf29e389 removed blenderdef.h, BIF_*, BDR_* and BSE_* header files (except for BIF_gl.h and BIF_glutil.h) 2008-01-01 18:16:10 +00:00
Ton Roosendaal
2df4ef711a More work on restoring Blender;
- brining back subwindow management
- removing more bad level stuff
2008-01-01 15:53:38 +00:00
Nathan Letwory
bcb14c2a0f * add fullscreen toggle operator (for testing fullscreen states in win32). hotkey is FKEY. Do test on other platforms, too. 2008-01-01 09:07:02 +00:00
Nathan Letwory
63d2208319 * fix include path (found by jensverwiebe) 2007-12-31 10:18:26 +00:00
Nathan Letwory
0f1e7db0b7 * also distinguish between maximised and fullscreen on GHOST win32.
* clean up some warnings (unused vars).
2007-12-30 23:09:33 +00:00
Nathan Letwory
1fec64a402 * revert my change to windowmanager move/size handling.
* made win32 ghost getClientBounds so that it returns area compatible with osx getClientBounds
  - if a window is non-fullscreen, substract decoration, since that'll be added by GHOST_WindowWin32()
* use SetWindowLongPtr/GetWindowLongPtr (instead of SetWindowLong) as it is compatible with 64bit windows.
2007-12-30 22:52:00 +00:00
Ton Roosendaal
f25ce8d0ff Removed silly Global windowstate variable.
Result: windows open default with decoration (or as your default WM
defines). 

Todo: platform maintainers re-implement a cogent way for giving 
commandline options for defaults, and test how this can be stored even
2007-12-30 17:29:13 +00:00
Nathan Letwory
93058ac3b3 * handle WM_MOVE on win32 in GHOST
* change window move/size handling so that getWindowBounds gets x,y for window and getClientBounds gets w,h
2007-12-30 17:13:36 +00:00
Ton Roosendaal
1039bc26fb Windowmanager, ghost side:
- Added GHOST_kEventWindowMove event, for sending event that the
  window has moved
- Fixed GHOST_GetClientBounds() for OSX (get window rect)

Todos:
- add same event for X11 and Windows
- solve why ghost doesn't call client event-proc while scaling window
  (at least, not in osx)
2007-12-30 13:30:31 +00:00
Nathan Letwory
81035f6e21 * remove unneeded include (msvc barfs on it), now current tree builds with scons/mingw, scons/msvc and scons/gcc (linux) (and afaik also cross-compiles on linux for windows, with thanks to Debolaz) 2007-12-30 00:22:39 +00:00
Nathan Letwory
47f9c1fa5f * some additions and a removal in stubs.c (by elubie)
* mingw config update to link properly with ffmpeg
2007-12-29 20:47:39 +00:00
Ton Roosendaal
dc98efaaa0 Accidentally removed a bit too many badlevel calls. 2007-12-29 19:16:04 +00:00
Nathan Letwory
de039a899a * fix include paths in SConscripts for GE. 2007-12-29 19:04:45 +00:00
Ton Roosendaal
5307c07832 Badlevel call amount reduced to 21!
(worst was radio module)
2007-12-29 18:44:31 +00:00
Martin Poirier
d870029748 Adding stubs for audiostream 2007-12-29 18:35:24 +00:00
Nathan Letwory
4c4abb0624 * add also SConscripts for editors.
I totally forgot those. Anyway, now all compiles and links (scons/mingw)
2007-12-29 18:05:24 +00:00
Ton Roosendaal
da7208eab5 Ported over the bad-level cleanup from Chris for Sculpt. 2007-12-29 17:07:55 +00:00
Ton Roosendaal
c27b65a255 Eh, comment should be on line above :) 2007-12-29 16:43:45 +00:00
Ton Roosendaal
b2b5bb55a3 Crash on startup fix 2007-12-29 16:42:39 +00:00
Ton Roosendaal
97f144b5ff And now blender will link again! However, with a bad stub.c
That's going to be tackled.
2007-12-29 16:12:35 +00:00
Ton Roosendaal
878e09396e Now Makefiles should be uptodate.
Also fixed old error in make for nodes, it didn't enter subdirs
correctly?

Left: 63 unresolved symbols on linking...
2007-12-29 14:56:16 +00:00
Ton Roosendaal
6407b5f703 Cleanup work for 2.5 branch. Target is to get it compile and link
still!
2007-12-29 14:31:26 +00:00
Nathan Letwory
1f78baa0f7 * remove obsolete include/ 2007-12-29 10:47:16 +00:00
Nathan Letwory
c2acbef851 * added SConscript for windowmanager
* tweak other SConscripts for editors/include
* commented BKE_bad_level_calls.h in writeframeserver.c - please check it doesn't break make builds

This compiles until final linking, which still fails.
2007-12-27 22:16:54 +00:00
Kent Mein
6c7b60668b (this is for blender2.5 again)
Modified these three to include blender/editors/include instead of 
blender/include maybe not needed at this stage but I'm guessing its good
to do this.

Kent
2007-12-27 21:35:25 +00:00
Nathan Letwory
e735a6b4c9 * remove src and python SConscript references 2007-12-27 20:29:29 +00:00
Kent Mein
1be207fe08 Small tweaks to blender2.5 Makefiles...
commented out srclib and pythonlib since its not there
added new include dir for window stuff so things could find headers..

Kent
2007-12-27 19:49:22 +00:00
Ton Roosendaal
25135a201b - removing conflicts in svn merge (didnt notice)
- adding more Makefiles
2007-12-24 19:13:04 +00:00
Ton Roosendaal
8c91939824 Last commit to get things on level I ended with during code holidays
(which was not even a working blender yet!)

Todo for dec 26th: finish the task:
- remove entire src/ and python/ dirs, and get blender to compile and
link again, using a new stubs.c temporary

(note; bad level calls stubs.c was also removed, this was a MESS!)

Then there's the task
- solve the bad level calls (can use help with that!)

So then I can do:
- move the screen code and subwindow code from old src/ to new editors
module and windowmanager

More will follow on mailing list, and wiki.
Merry xmas!
2007-12-24 18:58:12 +00:00
Ton Roosendaal
463cf8e332 Part 4 of the event refactor branch: all changes in existing files,
Makefiles especially, and of course the windowmanager DNA!
2007-12-24 18:53:37 +00:00
Ton Roosendaal
c79966be52 Blenkernel for 2.5 project, changes mainly are because of disabling
bad level calls. (which is not finished at all)
2007-12-24 18:38:03 +00:00
Ton Roosendaal
a1c8543f2a Step 3 for the initial commits for 2.5: removing src/ and python,
adding new windowmanager module, and the first bits of new editors
module.
2007-12-24 18:27:28 +00:00
Campbell Barton
8a07e665c2 patch from Vladimir Espinosa for keying object layers from python 2007-12-24 11:43:09 +00:00
Campbell Barton
df46987ba3 old bug in python api, Blender.Scene.Unlink() did not check if screens were using this scene or if it was used as a set elsewhere.
In both cases this resulted in invalid pointers and crashes.
Also was not freeing nodes or sequence data.
2007-12-24 10:25:35 +00:00
Peter Schlaile
146b0aec14 == Sequencer ==
Fixed IPO calculation for threaded prefetch rendering. (do_seq_ipo used
global CFRA tststs...)
2007-12-23 21:27:12 +00:00
Peter Schlaile
9f7182b8c8 == Sequencer ==
[#7861] Sequencer segfaults when trying to add images

Fixed some _really_ stupid bugs in transform_seq, that made it segfault
if one selected 0 images.
2007-12-23 19:21:43 +00:00
Peter Schlaile
6cbc3daf34 == FFMPEG ==
Fixes [#7475] no video as background 
libswscale sets the alpha channel to 0 by default... grmbl.
Added a workaround. Big endian users please complain, if it doesn't work.
2007-12-23 18:44:32 +00:00
Peter Schlaile
690d7a85bd == Playback (peach request) ==
Correct playback frames per second when "Play" is pressed. (Play spawns a new instance of blender, it could pass an argument that sets the frames per second)

(double credit :)
2007-12-23 17:27:06 +00:00
Peter Schlaile
74ebc77547 == Sequencer (Peach request) ==
Make the "Sync" button work when sound is disabled, Animators use this as a way to play animations at the right speed, could be renamed to "Drop Frames" and work even when blender built without audio enabled.

(do not forget to give credit to me :)
2007-12-23 17:01:44 +00:00
Nicholas Bishop
9efe5e5b23 Fixed bug #7981, Crash with multires
Caused by incorrect handling of multires with orco mapping
2007-12-23 03:03:54 +00:00
Campbell Barton
6f730601af Text draw assumed curarea->spacedata.first was always a text space - which in some cases is not correct.
This fixes a crash where python changing screens then raising an error would cause a crash.
2007-12-22 17:16:06 +00:00