Fixed terrain painting unwanted scrolling on show

This commit is contained in:
Michaël Lemaire 2013-06-03 22:03:52 +02:00
parent 41cc8787ac
commit eb837ef3bd
4 changed files with 5 additions and 5 deletions

View file

@ -24,7 +24,7 @@ win32:LIBS += ../libpaysages.a ../libpaysages_exploring.a -lDevIL -lILU -lILUT -
TRANSLATIONS = $$PROJECT_PATH/data/i18n/paysages_fr.ts
HEADERS += \
widgetheightmap.h \
terrain/widgetheightmap.h \
widgetexplorer.h \
widgetcurveeditor.h \
tools.h \
@ -73,7 +73,7 @@ HEADERS += \
common/previewrenderer.h
SOURCES += \
widgetheightmap.cpp \
terrain/widgetheightmap.cpp \
widgetexplorer.cpp \
widgetcurveeditor.cpp \
tools.cpp \

View file

@ -789,7 +789,7 @@
<customwidget>
<class>WidgetHeightMap</class>
<extends>QWidget</extends>
<header>widgetheightmap.h</header>
<header>terrain/widgetheightmap.h</header>
<container>1</container>
<slots>
<signal>heightmapChanged()</signal>

View file

@ -35,8 +35,8 @@ QGLWidget(parent)
_average_frame_time = 0.0;
_last_brush_action = 0;
_last_mouse_x = 0;
_last_mouse_y = 0;
_last_mouse_x = 250;
_last_mouse_y = 250;
_last_time = QDateTime::currentDateTime();
_mouse_moved = false;