mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-29 18:48:11 +08:00
Convert u64 IDs to newtypes (#1532)
This commit is contained in:
+2
-1
@@ -1,6 +1,7 @@
|
||||
use crate::messages::layout::utility_types::widget_prelude::*;
|
||||
use crate::messages::prelude::*;
|
||||
|
||||
use graph_craft::document::NodeId;
|
||||
use graphene_core::uuid::generate_uuid;
|
||||
|
||||
use glam::{DVec2, IVec2, UVec2};
|
||||
@@ -26,7 +27,7 @@ impl MessageHandler<NewDocumentDialogMessage, ()> for NewDocumentDialogMessageHa
|
||||
|
||||
let create_artboard = !self.infinite && self.dimensions.x > 0 && self.dimensions.y > 0;
|
||||
if create_artboard {
|
||||
let id = generate_uuid();
|
||||
let id = NodeId(generate_uuid());
|
||||
responses.add(GraphOperationMessage::NewArtboard {
|
||||
id,
|
||||
artboard: graphene_core::Artboard::new(IVec2::ZERO, self.dimensions.as_ivec2()),
|
||||
|
||||
Reference in New Issue
Block a user